We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 88468f2 commit 27fd341Copy full SHA for 27fd341
cli/config/init.go
@@ -62,7 +62,14 @@ func runInitCommand(cmd *cobra.Command, args []string) {
62
os.Exit(errorcodes.ErrGeneric)
63
}
64
65
- msg := "Config file written to: " + configFile
+ var absPath, err = filepath.Abs(destDir)
66
+ if err != nil {
67
+ feedback.Errorf("Cannot find absolute path: %v", err)
68
+ os.Exit(errorcodes.ErrGeneric)
69
+ }
70
+ var configFileAbsPath = filepath.Join(absPath, defaultFileName)
71
+
72
+ msg := "Config file written to: " + configFileAbsPath
73
logrus.Info(msg)
74
feedback.Print(msg)
75
0 commit comments