@@ -925,7 +925,8 @@ def command():
925
925
@click .option ('--service-name' , '-n' , type = click .UNPROCESSED , default = None , help = 'A service name to use.' )
926
926
@click .option ('--wait' , '-w' , default = 5 , show_default = True ,
927
927
help = 'Number of seconds to wait before cleaning up the service.' )
928
- def execute (cmd , args , service_name , wait ):
928
+ @click .option ('--ignore-path' , is_flag = True , help = 'Do not warn about full paths.' )
929
+ def execute (cmd , args , service_name , wait , ignore_path ):
929
930
"""
930
931
Execute an arbitrary command.
931
932
@@ -943,8 +944,8 @@ def execute(cmd, args, service_name, wait):
943
944
service_name = str (service_name ).replace ('-' , '' ).replace (' ' , '' )[0 :16 ]
944
945
945
946
# Check if a full path was provided for the command to run.
946
- # Seems like the ENV does not have a PATH.
947
- if '/' not in cmd :
947
+ # Seems like the ENV for MQ does not have a PATH set
948
+ if '/' not in cmd and not ignore_path :
948
949
click .secho ('The command does not appear to be a full path to the executable. This command execution may '
949
950
'fail. Are you sure you want to continue?' , fg = 'yellow' )
950
951
if not click .confirm ('Continue?' ):
0 commit comments