Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var RunCmd = climax.Command{ Name: "run", Brief: "Run a recipe", Help: "Run a recipe", Flags: []climax.Flag{ { Name: "recipe", Short: "r", Usage: `--recipe=<name>`, Help: `The name of the recipe to run`, Variable: true, }, { Name: "directory", Short: "d", Usage: `--directory=<path-to-directory>`, Help: `Directory to look for the recipe`, Variable: true, }, }, Handle: func(ctx climax.Context) int { var recipe, directory string if r, ok := ctx.Get("recipe"); ok { recipe = r } else { log.Fatal("Name of the recipe is required") } if _, ok := ctx.Get("directory"); !ok { directory = utils.RecipesDirectory() } fmt.Println(recipe, directory) return 0 }, }
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.