Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Commands = []cli.Command{ { Name: "develop", Aliases: []string{"d"}, Usage: "run a task for develop environments", ArgsUsage: " ", Subcommands: []cli.Command{ { Name: "setup", Usage: "hantera develop setup", UsageText: "hantera develop setup --config ./hantera.yml --target ./project", Description: "sets up a project for development", Action: Setup, Flags: append( []cli.Flag{ cli.StringFlag{ Name: "branch, b", Usage: "branch to checkout", Value: "develop", }, cli.BoolFlag{ Name: "progress, p", Usage: "show clone progress", }, cli.BoolFlag{ Name: "no-deps, no-dep", Usage: "don't install dependencies (e.g. npm i)", }, }, defaultFlags..., ), }, { Name: "install-dependencies", Aliases: []string{"install-deps", "id"}, Usage: "hantera develop install-deps", UsageText: "hantera develop install-deps --config ./hantera.yml --target ./project", Description: "installs dependencies for a project", Action: CmdInstallDependencies, Flags: append( []cli.Flag{}, defaultFlags..., ), }, { Name: "update", Usage: "hantera develop update", UsageText: "hantera develop update --config ./hantera.yml --target ./project", Description: "updated dependencies of a project", Action: Update, Flags: append( []cli.Flag{ cli.StringFlag{ Name: "branch, b", Usage: "branch to checkout", Value: "develop", }, cli.BoolFlag{ Name: "progress, p", Usage: "show progress", }, cli.BoolFlag{ Name: "no-deps, no-dep", Usage: "don't install dependencies (e.g. npm i)", }, }, defaultFlags..., ), }, { Name: "clean", Usage: "hantera develop clean", UsageText: "hantera develop clean --config ./hantera.yml --target ./project", Description: "clean/delete dependencies of a project", Action: Clean, Flags: append( []cli.Flag{}, defaultFlags..., ), }, }, }, }
Commands : describes all commands for "develop" environments
Functions ¶
func CloneRepository ¶ added in v0.1.0
func CloneRepository(name string, target string, branch string, repository string, nodeps bool, wg *sync.WaitGroup)
CloneRepository : clones the given repository
func CmdInstallDependencies ¶ added in v0.2.0
CmdInstallDependencies : this is a wrapper for InstallDependencies, used by the main command triggered by cli
func InstallDependencies ¶
InstallDependencies : installs project dependencies (tries to figure out package manager e.g. npm)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.