Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Cmd = &cobra.Command{ Use: "init", Short: "Initialize a new Flow project", Run: func(cmd *cobra.Command, args []string) { if !cli.ProjectExists(c.ConfigPath[0]) { proj := cli.InitProject() proj.Save(c.ConfigPath[0]) fmt.Print( cli.Green(fmt.Sprintf("Initialized a new Flow project in %s\n\n", c.ConfigPath)), ) fmt.Printf( "Start the Flow Emulator by running: %s\n", cli.Bold("flow project start-emulator"), ) } else { fmt.Printf( "%s\n\nStart the Flow Emulator by running: %s\n", cli.Red(fmt.Sprintf("A Flow project already exists in %s", c.ConfigPath)), cli.Bold("flow project start-emulator"), ) } }, }
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.