Exemplo n.º 1
0
func (cmd *pushCmd) Run(args []string) {
	context, path := discoverContext(args)
	exitWithError(commands.New(context, &commands.Options{
		Path:        path,
		IsRecursive: *cmd.isRecursive,
		IsNoPrompt:  *cmd.isNoPrompt,
	}).Push())
}
Exemplo n.º 2
0
func (cmd *initCmd) Run(args []string) {
	exitWithError(commands.New(initContext(args), nil).Init())
}
Exemplo n.º 3
0
func (cmd *publishCmd) Run(args []string) {
	context, path := discoverContext(args)
	exitWithError(commands.New(context, &commands.Options{
		Path: path,
	}).Publish())
}