Commit 81e6a56
authored
[cli] Move output command state out of CliContext (#426)
* [cli] Move output command state out of CliContext
To simplify things, all output commands can be treated similarily
as they all act on the result of the processing pipeline. This
allows new commands to be added without needing to explicitly define
their values in CliContext, and makes the values that do remain there
much more meaningful.
It also allows commands to be specified multiple times gracefully
and with different options, so for example `save-images` can now be
run twice with different encoding parameters.
* [cli] Centralize preconditions in CliContext
* [cli] Simplify parsing of default values1 parent e58f0e3 commit 81e6a56
File tree
8 files changed
+618
-790
lines changed- scenedetect
- _cli
8 files changed
+618
-790
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
| 25 | + | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
| 28 | + | |
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
41 | | - | |
| 41 | + | |
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
46 | | - | |
| 46 | + | |
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
| |||
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
55 | | - | |
| 55 | + | |
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
| |||
0 commit comments