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