From 2b7f97ecc515142a17c6323080d24217b6e700c6 Mon Sep 17 00:00:00 2001 From: Daylin Morgan Date: Sun, 6 Aug 2023 21:56:15 -0500 Subject: [PATCH] docs: no more viv exe pip/python --- docs/cli.md | 6 -- docs/svgs/viv-exe-pip-help.svg | 116 ------------------------------ docs/svgs/viv-exe-python-help.svg | 116 ------------------------------ scripts/generate-svgs.py | 23 +++--- 4 files changed, 14 insertions(+), 247 deletions(-) delete mode 100644 docs/svgs/viv-exe-pip-help.svg delete mode 100644 docs/svgs/viv-exe-python-help.svg diff --git a/docs/cli.md b/docs/cli.md index db16235..21425a3 100644 --- a/docs/cli.md +++ b/docs/cli.md @@ -9,12 +9,6 @@ ## exe ![cmd](./svgs/viv-exe-help.svg) -### exe python -![cmd](./svgs/viv-exe-python-help.svg) - -### exe pip -![cmd](./svgs/viv-exe-pip-help.svg) - ## remove ![cmd](./svgs/viv-remove-help.svg) diff --git a/docs/svgs/viv-exe-pip-help.svg b/docs/svgs/viv-exe-pip-help.svg deleted file mode 100644 index 7c99d23..0000000 --- a/docs/svgs/viv-exe-pip-help.svg +++ /dev/null @@ -1,116 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - viv exe pip --help - - - - - - - - - - usage: viv exe [-h] vivenv cmd - -run binary/script in existing vivenv - -examples: -    viv exe <vivenv> python -- script.py -    viv exe <vivenv> python -- -m http.server - -positional arguments: -vivenv        name/hash of vivenv -cmd           command to to execute - -options: --h--help    show this help message and exit - - - - diff --git a/docs/svgs/viv-exe-python-help.svg b/docs/svgs/viv-exe-python-help.svg deleted file mode 100644 index b8ffb80..0000000 --- a/docs/svgs/viv-exe-python-help.svg +++ /dev/null @@ -1,116 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - viv exe python --help - - - - - - - - - - usage: viv exe [-h] vivenv cmd - -run binary/script in existing vivenv - -examples: -    viv exe <vivenv> python -- script.py -    viv exe <vivenv> python -- -m http.server - -positional arguments: -vivenv        name/hash of vivenv -cmd           command to to execute - -options: --h--help    show this help message and exit - - - - diff --git a/scripts/generate-svgs.py b/scripts/generate-svgs.py index 3c328d0..107aed0 100755 --- a/scripts/generate-svgs.py +++ b/scripts/generate-svgs.py @@ -11,15 +11,20 @@ VIV = Path(__file__).parent.parent / "src" / "viv" / "viv.py" CLI_DOC_PATH = DOCS_PATH / "cli.md" -cmds = { - "list": [], - "exe": ["python", "pip"], - "remove": [], - "manage": ["update", "purge", "show", "install"], - "freeze": [], - "shim": [], - "run": [], -} +( + cmds := dict.fromkeys( + ( + "list", + "exe", + "remove", + "manage", + "freeze", + "shim", + "run", + ), + [], + ) +).update({"manage": ["update", "purge", "show", "install"]}) cli_doc = """