utils

package
v0.0.0-...-c937b9e Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2015 License: MIT Imports: 9 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Plans = cli.Command{
	Name:  "plans",
	Usage: "Helper to work with plans",
	Flags: cmd.ApiFlags("BEARDED"),
	Subcommands: []cli.Command{
		cli.Command{
			Name:   "list",
			Usage:  "Show all installed plans",
			Action: cmd.TakeApi(plansListAction),
		},
		cli.Command{
			Name:   "show",
			Usage:  "Show plan by id",
			Action: cmd.TakeApi(plansShowAction),
		},
		cli.Command{
			Name:   "load",
			Usage:  "Load plans from file",
			Action: cmd.TakeApi(plansLoadAction),
			Flags: []cli.Flag{
				cli.BoolFlag{
					Name:  "update",
					Usage: "Update plan if existed",
				},
				cli.StringFlag{
					Name:  "format",
					Usage: "Specify file format, by default format is taken from ext",
				},
			},
		},
	},
}
View Source
var Plugins = cli.Command{
	Name:  "plugins",
	Usage: "Helper to work with plugins",
	Flags: cmd.ApiFlags("BEARDED"),
	Subcommands: []cli.Command{
		cli.Command{
			Name:   "list",
			Usage:  "Show all installed plugins",
			Action: cmd.TakeApi(pluginsListAction),
		},
		cli.Command{
			Name:   "show",
			Usage:  "Show plugin by id",
			Action: cmd.TakeApi(pluginsShowAction),
		},
		cli.Command{
			Name:   "load",
			Usage:  "Load plugins from file",
			Action: cmd.TakeApi(pluginsLoadAction),
			Flags: []cli.Flag{
				cli.BoolFlag{
					Name:  "update",
					Usage: "Update plugin if existed",
				},
				cli.BoolFlag{
					Name:  "disable",
					Usage: "Set plugin as disabled",
				},
				cli.StringFlag{
					Name:  "format",
					Usage: "Specify file format, by default format is taken from ext",
				},
			},
		},
	},
}

Functions

This section is empty.

Types

type ExtraData

type ExtraData struct {
	Plugins []*plugin.Plugin
	Plans   []*plan.Plan
}

Jump to

Keyboard shortcuts

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