command

package
v2.3.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2017 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Bundle = cli.Command{
	Name:   "bundle",
	Usage:  "downloads (if needed) and then sources a given repo",
	Action: doBundle,
}

Bundle downloads (if needed) and then sources a given repo

View Source
var Home = cli.Command{
	Name:    "home",
	Aliases: []string{"prefix", "p"},
	Usage:   "shows the current antibody home folder",
	Action: func(ctx *cli.Context) error {
		fmt.Println(antibody.Home())
		return nil
	},
}

Home shows current antibody home folder

View Source
var Init = cli.Command{
	Name:  "init",
	Usage: "Initializes the shell so Antibody can work as expected",
	Action: func(ctx *cli.Context) error {
		fmt.Println(shell.Init())
		return nil
	},
}

Init prints out the antibody's shell init script

View Source
var List = cli.Command{
	Name:  "list",
	Usage: "list all currently downloaded bundles",
	Action: func(ctx *cli.Context) error {
		home := antibody.Home()
		projects, err := project.List(home)
		if err != nil {
			return err
		}
		for _, b := range projects {
			fmt.Println(filepath.Join(home, b))
		}
		return nil
	},
}

List all downloaded bundles

View Source
var Update = cli.Command{
	Name:  "update",
	Usage: "updates all previously bundled commands",
	Action: func(ctx *cli.Context) error {
		fmt.Println("Updating all bundles in " + antibody.Home() + "...")
		return project.Update(antibody.Home())
	},
}

Update all previously bundled bundles

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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