Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var RunCmd = &cobra.Command{ Use: "run", Short: "runs the project", Long: `runs the project after building it based on instructions defined in bsf.hcl. Build occurs in a sandboxed environment where only current directory is available. It is recommended to check in the files in version control system(ex: Git) before building. `, Run: func(cmd *cobra.Command, args []string) { if _, err := os.Stat("bsf.hcl"); err != nil { fmt.Println(styles.ErrorStyle.Render("error: ", err.Error()+"\nHas the project been initialized?")) fmt.Println(styles.HintStyle.Render("hint: ", "run `bsf init` to initialize the project")) os.Exit(1) } err := nixcmd.Run() if err != nil { fmt.Println(styles.ErrorStyle.Render("error: ", err.Error())) os.Exit(1) } }, }
RunCmd represents the build command
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.