func (cmd *DestroyPolicy) Run(scope scope.Scope, c *cli.Context) {
	if err := net.VerifyLoginURL(cmd.network); err != nil {
		error_handler.ErrorExit(err)
	}
	spec, err := entity_policies.DestroyPolicy(cmd.network, scope.Application, scope.Entity, c.Args().First())
	if nil != err {
		error_handler.ErrorExit(err)
	}
	fmt.Println(spec)
}
示例#2
0
func (cmd *DestroyPolicy) Run(c *cli.Context) {
	spec := entity_policies.DestroyPolicy(cmd.network, c.Args()[0], c.Args()[1], c.Args()[2])
	fmt.Println(spec)
}