Example #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())
}
Example #2
0
func (cmd *initCmd) Run(args []string) {
	exitWithError(commands.New(initContext(args), nil).Init())
}
Example #3
0
func (cmd *publishCmd) Run(args []string) {
	context, path := discoverContext(args)
	exitWithError(commands.New(context, &commands.Options{
		Path: path,
	}).Publish())
}