From 752a6ff30fc74dc118f912414d3bdf94f91ed053 Mon Sep 17 00:00:00 2001 From: rgermain Date: Sun, 27 Oct 2024 09:26:38 +0100 Subject: [PATCH] feat(vscode): add remove pkg --- meta_package_manager/managers/vscode.py | 9 +++++++++ readme.md | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/meta_package_manager/managers/vscode.py b/meta_package_manager/managers/vscode.py index 0dce46a97..48de3a3a3 100644 --- a/meta_package_manager/managers/vscode.py +++ b/meta_package_manager/managers/vscode.py @@ -73,3 +73,12 @@ def install(self, package_id: str, version: str | None = None) -> str: ► code --install-extension tamasfe.even-better-toml """ return self.run_cli("--install-extension", package_id) + + def remove(self, package_id: str) -> str: + """Remove one package. + + .. code-block:: shell-session + + ► code --uninstall-extension tamasfe.even-better-toml + """ + return self.run_cli("--uninstall-extension", package_id) diff --git a/readme.md b/readme.md index 30a02dd84..af896bf60 100644 --- a/readme.md +++ b/readme.md @@ -132,7 +132,7 @@ Meta Package Manager,zypper,1 | [`snap`](https://snapcraft.io) | 2.0.0 | 🅱️ | 🐧 | | `>_` | | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | | | | | [`steamcmd`](https://developer.valvesoftware.com/wiki/SteamCMD) | None | 🅱️ | 🐧 | 🍎 | `>_` | 🪟 | | | | ✓ | | | | | | | [`uv`](https://astral.sh) | 0.1.45 | 🅱️ | 🐧 | 🍎 | `>_` | 🪟 | ✓ | | | ✓ | ✓ | | ✓ | | | -| [`vscode`](https://code.visualstudio.com) | 1.60.0 | 🅱️ | 🐧 | 🍎 | `>_` | 🪟 | ✓ | | | ✓ | | | | | | +| [`vscode`](https://code.visualstudio.com) | 1.60.0 | 🅱️ | 🐧 | 🍎 | `>_` | 🪟 | ✓ | | | ✓ | | | ✓ | | | | [`winget`](https://github.com/microsoft/winget-cli) | 1.7 | | | | | 🪟 | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | | | | [`yarn`](https://yarnpkg.com) | 1.20.0 | 🅱️ | 🐧 | 🍎 | `>_` | 🪟 | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | | ✓ | | [`yay`](https://github.com/Jguer/yay) | 11.0.0 | 🅱️ | 🐧 | | `>_` | | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |