forked from toolshed/abra
		
	refactor!: simple validation only
This commit is contained in:
		@ -67,12 +67,8 @@ Example:
 | 
				
			|||||||
	Action: func(c *cli.Context) error {
 | 
						Action: func(c *cli.Context) error {
 | 
				
			||||||
		app := internal.ValidateApp(c)
 | 
							app := internal.ValidateApp(c)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		if len(c.Args()) <= 2 && !localCmd {
 | 
							if localCmd && remoteUser != "" {
 | 
				
			||||||
			internal.ShowSubcommandHelpAndError(c, errors.New("missing <service>/<command>? did you mean to pass --local?"))
 | 
								internal.ShowSubcommandHelpAndError(c, errors.New("cannot use --local & <user> together"))
 | 
				
			||||||
		}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
		if len(c.Args()) > 2 && localCmd {
 | 
					 | 
				
			||||||
			internal.ShowSubcommandHelpAndError(c, errors.New("cannot specify <service> and --local together"))
 | 
					 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		abraSh := path.Join(config.RECIPES_DIR, app.Recipe, "abra.sh")
 | 
							abraSh := path.Join(config.RECIPES_DIR, app.Recipe, "abra.sh")
 | 
				
			||||||
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user