예제 #1
0
func (cmd *Rename) Run(scope scope.Scope, c *cli.Context) {
	if err := net.VerifyLoginURL(cmd.network); err != nil {
		error_handler.ErrorExit(err)
	}
	rename, err := entities.Rename(cmd.network, scope.Application, scope.Entity, c.Args().First())
	if nil != err {
		error_handler.ErrorExit(err)
	}
	fmt.Println(rename)
}
예제 #2
0
func (cmd *Rename) Run(c *cli.Context) {
	rename := entities.Rename(cmd.network, c.Args()[0], c.Args()[1], c.Args()[2])
	fmt.Println(rename)
}