Skip to content

Commit 89ac229

Browse files
committed
misc-helper: make use of the modern commander paradigm
Nowadays, sub-commands are meant to be implemented via `.action()` callbacks instead of `if ... else if ... else` chains. The only major complication is that some of `misc-helper`'s sub-commands take optional arguments _at the beginning_: `get-pr-meta`, for example, takes an optional repository owner as first argument, followed by a required PR number or URL. This is a scenario for which `commander` is not prepared; We need to sub-class its `Command` class to work around that. Signed-off-by: Johannes Schindelin <[email protected]>
1 parent 772b5c9 commit 89ac229

File tree

1 file changed

+374
-340
lines changed

1 file changed

+374
-340
lines changed

0 commit comments

Comments
 (0)