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 da36d52 commit fedf668Copy full SHA for fedf668
pkg/cmd/root.go
@@ -137,6 +137,12 @@ func ensureConfigDefaults() {
137
tasklet.MustRun(tasklet.Runner{
138
StartMsg: "Updating configfile to include defaults",
139
Runner: func(_ tasklet.TaskletContext) error {
140
+ // ensure .config/nitric exists
141
+ err := os.MkdirAll(utils.NitricConfigDir(), os.ModePerm)
142
+ if err != nil {
143
+ return err
144
+ }
145
+
146
return viper.SafeWriteConfigAs(path.Join(utils.NitricConfigDir(), ".nitric-config.yaml"))
147
},
148
StopMsg: "Configfile updated"}, tasklet.Opts{})
0 commit comments