develop

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2017 License: Apache-2.0 Imports: 5 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: []cli.Flag{
					cli.StringFlag{
						Name:  "config, c",
						Usage: "load manifest from `FILE.yml`",
						Value: "./hantera.yml",
					},
					cli.StringFlag{
						Name:  "target, t",
						Usage: "setup project in `PATH`",
					},
					cli.StringFlag{
						Name:  "branch, b",
						Usage: "branch to checkout",
						Value: "refs/heads/develop",
					},
					cli.BoolFlag{
						Name:  "progress, p",
						Usage: "show clone progress",
					},
				},
			},
			{
				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:      InstallDependencies,
				Flags: []cli.Flag{
					cli.StringFlag{
						Name:  "config, c",
						Usage: "load manifest from `FILE.yml`",
						Value: "./hantera.yml",
					},
					cli.StringFlag{
						Name:  "target, t",
						Usage: "setup project in `PATH`",
					},
				},
			},
		},
	},
}

Commands : describes all commands for "develop" environments

Functions

func InstallDependencies

func InstallDependencies(c *cli.Context)

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

Types

This section is empty.

Jump to

Keyboard shortcuts

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