blob: 2b86facbc37cd1f1854bcf0578b715d423c3bce5 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
--- subcmds/configtest.go.orig 1979-11-29 23:00:00 UTC
+++ subcmds/configtest.go
@@ -4,8 +4,6 @@ import (
"context"
"flag"
"fmt"
- "os"
- "path/filepath"
"strings"
"github.com/google/subcommands"
@@ -46,8 +44,7 @@ func (p *ConfigtestCmd) SetFlags(f *flag.FlagSet) {
// SetFlags set flag
func (p *ConfigtestCmd) SetFlags(f *flag.FlagSet) {
- wd, _ := os.Getwd()
- defaultConfPath := filepath.Join(wd, "config.toml")
+ defaultConfPath := "%%ETCDIR%%/config.toml"
f.StringVar(&p.configPath, "config", defaultConfPath, "/path/to/toml")
defaultLogDir := logging.GetDefaultLogDir()
|