Philippe Teuwen
af91ddcda9
CLI: Do not execute a command if help is printed
...
Previously, for example `hf 14a raw -b 7 -d 26 -h` was printing help but it was also executing the command.
2023-11-15 09:44:37 +01:00
Philippe Teuwen
7d851d2a22
reorganize a bit cli to allow autotests
2023-10-24 23:46:34 +02:00
Philippe Teuwen
ece5e79060
typechecking fixes
2023-10-24 23:44:56 +02:00
Philippe Teuwen
d77e166249
pep287
2023-10-24 00:57:44 +02:00
Philippe Teuwen
2beb8f74a3
cli: check if helper tools are available
2023-10-17 22:08:34 +02:00
Philippe Teuwen
43a6e822e6
cli: move color shortcuts to chameleon_util
2023-10-15 01:17:29 +02:00
Philippe Teuwen
f93418b7d8
cli: skip empty lines when several cmd lines are copy/pasted
2023-10-10 10:57:26 +02:00
Philippe Teuwen
61cc4f5891
cli: color help and add epilog example
2023-10-10 01:58:26 +02:00
Philippe Teuwen
b6d2badab4
cli: simplify exit conditions
2023-10-10 00:21:31 +02:00
Philippe Teuwen
4927e0166c
cli: one root CLITree, enhance dump_help
2023-10-10 00:17:17 +02:00
Philippe Teuwen
75e368da62
cli: hf mf econfig, hf mfu econfig (wip), fix dumphelp
2023-10-09 21:23:17 +02:00
Philippe Teuwen
2d3538f4c2
cli: add support for after_exec
2023-10-09 00:15:25 +02:00
Philippe Teuwen
be7fad4906
cli: colors shortcuts
2023-10-05 01:09:15 +02:00
Philippe Teuwen
707b0c6d4a
Changed CLI help:
...
- visually closer to pm3 (differenciate groups and commands)
- "dumphelp" allows to quickly dump all cmds and their options
- now all commands support '-h', so e.g. `hw settings store -h` will print help instead of storing
- no more command description in decorator, it is now taken from argparse description
2023-10-05 00:48:50 +02:00
Philippe Teuwen
606ec02e30
Added support for timestamped comments in CLI via rem, ;, % or #
2023-10-01 00:34:18 +02:00
Szymon Borecki
9ee5d3a73e
Fix a bug where a KeyboardInterrupt would trigger an error and crash the app
2023-08-26 19:31:35 +02:00
Philippe Teuwen
04741bdc2a
autopep8
2023-08-26 12:06:15 +02:00
Philippe Teuwen
d5d955d2e9
pylance
2023-08-26 02:55:46 +02:00
Philippe Teuwen
a596e98bf7
python style
2023-08-26 02:24:08 +02:00
Philippe Teuwen
7ff6a0b3a2
Allow pasting multiple commands at once, as it was with readline
2023-08-25 17:57:12 +02:00
Philippe Teuwen
7f569113a0
CLI check python version
2023-08-24 17:00:05 +02:00
Philippe Teuwen
e43e668594
Remove tabs & spaces at end of lines
2023-08-23 00:18:31 +02:00
Szymon Borecki
4e0494b286
Store CLI history in ~/.chameleon_history
2023-08-21 00:54:36 +02:00
Szymon Borecki
895b0ced12
Merge remote-tracking branch 'origin/main' into cli-overhaul
2023-08-20 01:25:24 +02:00
Philippe Teuwen and GitHub
8879460e10
Merge branch 'main' into hw-slot-info
2023-08-20 00:11:42 +02:00