func (cmd *AddCatalog) Run(scope scope.Scope, c *cli.Context) { if err := net.VerifyLoginURL(cmd.network); err != nil { error_handler.ErrorExit(err) } create, err := catalog.AddCatalog(cmd.network, c.Args().First()) if nil != err { error_handler.ErrorExit(err) } fmt.Println(create) }
func (cmd *AddCatalog) Run(c *cli.Context) { create := catalog.AddCatalog(cmd.network, c.Args()[0]) fmt.Println(create) }