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