develop

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 18, 2017 License: Apache-2.0 Imports: 7 Imported by: 0

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 Clean added in v0.0.5

func Clean(c *cli.Context)

Clean : remove all dependencies of the project

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

func CmdInstallDependencies(c *cli.Context)

CmdInstallDependencies : this is a wrapper for InstallDependencies, used by the main command triggered by cli

func InstallDependencies

func InstallDependencies(c *cli.Context, params ...string)

InstallDependencies : installs project dependencies (tries to figure out package manager e.g. npm)

func Setup

func Setup(c *cli.Context)

Setup : sets up development environment for a project

func Update added in v0.0.5

func Update(c *cli.Context)

Update : updates each dependencies working copy to latest version from head

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL