- 06 Jul, 2018 1 commit
-
-
Samuel GAIST authored
Click turns functions into "commands" which has the following consequences: - Any return statement means that it has succeeded whatever the value returned therefore the exit code will be 0 - To "fail" properly an exception must be raised which will return an exit code of 1 - Other exceptions will be treated as usage error and have an exit code of 2 The raise_on_error decorator will take the returned value of the wrapped function and raise a generic error with the exit code set to what the function has returned.
-
- 03 Mar, 2016 1 commit
-
-
André Anjos authored
-
- 02 Mar, 2016 2 commits
-
-
André Anjos authored
-
André Anjos authored
-
- 29 Feb, 2016 1 commit
-
-
André Anjos authored
-