1. 06 Jul, 2018 1 commit
    • Samuel GAIST's avatar
      [decorators] Add raise_on_error decorator · 151292b5
      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.
      151292b5
  2. 22 Jun, 2018 4 commits
  3. 20 Jun, 2018 1 commit
  4. 07 Jun, 2018 2 commits
  5. 05 Jun, 2018 4 commits
  6. 04 Jun, 2018 4 commits
  7. 30 May, 2018 6 commits
  8. 29 May, 2018 18 commits