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)
}
Beispiel #2
0
func (cmd *AddCatalog) Run(c *cli.Context) {
	create := catalog.AddCatalog(cmd.network, c.Args()[0])
	fmt.Println(create)
}