[RFC v2 0/3] New command-line interface for tuna
by Leah Leshchinsky
These patches introduce a new command-line interface that provides
distinct subcommands for the user.
Through the use of argparse, users see simpler help menus and can
view positional and optional arguments for all tuna commands.
The internal implementation is also simplified by removing the need
for a saved state for each iteration of parsing.
v2 Removes unnecessary sample.py file added in previous version,
moves changes to show_irqs() from patch 1/3 to 3/3.
Leah Leshchinsky (3):
tuna: Update command-line interface
tuna: Edit param variable to print full policy name
tuna: Remove unused functions and globals
tuna-cmd.py | 633 ++++++++++++++++++++-------------------------------
tuna/tuna.py | 7 +-
2 files changed, 246 insertions(+), 394 deletions(-)
--
2.27.0
1 year, 8 months
[PATCH] tuna: Makefile: Fix "extra" is obsolete in ctags
by John Kacur
"extra" is obsolete in ctags, use "extras" instead
Signed-off-by: John Kacur <jkacur(a)redhat.com>
---
Makefile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Makefile b/Makefile
index 24f0870ffc0d..2c72feaa398c 100644
--- a/Makefile
+++ b/Makefile
@@ -39,7 +39,7 @@ pyclean:
.PHONY: tags
tags:
- ctags -R --extra=+fq --python-kinds=+cfmvi
+ ctags -R --extras=+fq --python-kinds=+cfmvi
.PHONY: cleantags
cleantags:
--
2.35.1
1 year, 8 months
[RFC 0/3] New command-line interface for tuna
by Leah Leshchinsky
These patches introduce a new command-line interface that provides
distinct subcommands for the user.
Through the use of argparse, users see simpler help menus and can
view positional and optional arguments for all tuna commands.
The internal implementation is also simplified by removing the need
for a saved state for each iteration of parsing.
This new implementation parses first, and provides warnings at the
parser level, before executing any actions.
Leah Leshchinsky (3):
tuna: Update command-line interface
tuna: Edit param variable to print full policy name
tuna: Remove unused functions and globals
sample.py | 630 ++++++++++++++++++++++++++++++++++++++++++++++++++
tuna-cmd.py | 642 ++++++++++++++++++++-------------------------------
tuna/tuna.py | 7 +-
3 files changed, 880 insertions(+), 399 deletions(-)
create mode 100755 sample.py
--
2.27.0
1 year, 8 months