Currently I’m using fab -f check_remote.py func:"arg1","arg2"... to run fab remote.
Now I need to send a bool arg, but True/False become a string arg, how to set it as bool type?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
As mentioned in the fabric docs, all the arguments end up as strings. The simplest thing to do here would just check the argument:
The parentheses aren’t required, but help with readability.
Edit: Apparently I didn’t actually try my previous answer; updated. (Two years later.)