Skip to content

Commit 3904b0e

Browse files
authored
Add no-catch and no-print-locals flags to job command (#341)
* add no-catch and no-print-locals flags, disabling catching excveption when running CLI commands and printing lcoals in tracebacks, respectively * get debug desc back
1 parent e715b65 commit 3904b0e

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

ampel/cli/JobCommand.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,8 @@ def get_parser(self, sub_op: None | str = None) -> ArgumentParser | AmpelArgumen
8686
'config': 'path to an ampel config file (yaml/json)',
8787
'schema': 'path to YAML job file (multiple files will be aggregated)',
8888
'no-color': 'produce plain text output without colors',
89+
'no-print-locals': 'do not print local variables in tracebacks',
90+
'no-catch': 'do not catch exceptions during executions but instead let the code fail',
8991
'secrets': 'path to a YAML secrets store in sops format',
9092
'keep-db': 'do not reset databases even if so requested by job file',
9193
'reset-db': 'reset databases even if not requested by job file',
@@ -120,6 +122,8 @@ def get_parser(self, sub_op: None | str = None) -> ArgumentParser | AmpelArgumen
120122
parser.opt('interactive', action='store_true')
121123
parser.opt('debug', action='store_true')
122124
parser.opt('no-color', action='store_true')
125+
parser.opt('no-print-locals', action='store_true')
126+
parser.opt('no-catch', action='store_true')
123127
parser.opt('edit', nargs='?', default=None, const='raw')
124128
parser.opt('keep-edits', action='store_true')
125129
parser.opt('fzf', action='store_true')

0 commit comments

Comments
 (0)