func stopFunction(c *cli.Context) { //Set up parameters var ( app string target string ) dryRun := c.GlobalBool("dry-run") base := nulecule.New(target, app, dryRun) base.Stop() }
func runFunction(c *cli.Context) { //Set up parameters var ( app string target string ) ask := c.Bool("ask") answersFile := c.String("write") dryRun := c.GlobalBool("dry-run") if len(c.Args()) >= 1 { target = c.Args()[0] } //Start run sequence base := nulecule.New(target, app, dryRun) base.Run(ask, answersFile) }