Documentation ¶
Index ¶
Constants ¶
View Source
const ( UpdateOptRebuild = iota UpdateOptAdd UpdateOptRemove UpdateOptUpdate )
View Source
const (
VersionTpl = `{{with .Name}}{{printf "%s " .}}{{end}}{{printf "cli version %s" .Version}}
`
)
Variables ¶
View Source
var CreateCmd = &cobra.Command{ Use: "create [flags] [appName]", Short: "create a flogo application project", Long: `Creates a flogo application project.`, Args: cobra.RangeArgs(0, 1), PersistentPreRun: func(cmd *cobra.Command, args []string) {}, Run: func(cmd *cobra.Command, args []string) { api.SetVerbose(verbose) appName := "" if len(args) > 0 { appName = args[0] } currentDir, err := os.Getwd() if err != nil { fmt.Fprintf(os.Stderr, "Error determining working directory: %v\n", err) os.Exit(1) } _, err = api.CreateProject(currentDir, appName, flogoJsonPath, coreVersion) if err != nil { fmt.Fprintf(os.Stderr, "Error creating project: %v\n", err) os.Exit(1) } }, }
Functions ¶
func Initialize ¶
func Initialize(version string)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.