Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DevCmd = &cobra.Command{ Use: "develop", Short: "develop spawns a development shell", Long: `develop spawns a development shell. All packages mentioned in bsf.hcl in development attribute will be available in the shell. `, Run: func(cmd *cobra.Command, args []string) { sc, fh, err := binit.GetBSFInitializers() if err != nil { fmt.Println(styles.ErrorStyle.Render("error: ", err.Error())) os.Exit(1) } err = generate.Generate(fh, sc) if err != nil { fmt.Println(styles.ErrorStyle.Render("error: ", err.Error())) os.Exit(1) } err = bgit.Add("bsf/") if err != nil { fmt.Println(styles.ErrorStyle.Render("error: ", err.Error())) os.Exit(1) } err = nixcmd.Develop() if err != nil { fmt.Println(styles.ErrorStyle.Render("error: ", err.Error())) os.Exit(1) } }, }
DevCmd represents the Develop command
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.