quick extracted funcs
@@ -41,7 +41,10 @@ var InitCommand = &command.Command{
Example: "flow project init",
},
Flags: &initFlag,
- Run: func(
+ Run: initialise,
+}
+
+func initialise(
cmd *cobra.Command,
args []string,
readerWriter flowkit.ReaderWriter,
@@ -76,5 +79,4 @@ var InitCommand = &command.Command{
}
return &config.InitResult{State: s}, nil
- },
}
