From f42abe18ad333cb887a520b0def2b436097c2b28 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9gis=20Behmo?= Date: Thu, 16 Mar 2023 09:41:21 +0100 Subject: [PATCH] =?UTF-8?q?feat:=20highlight=20enabled=20plugins=20with=20?= =?UTF-8?q?=E2=9C=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit In the output of `plugins list` it's difficult to see which plugins are enabled at a glance. This change adds a more visible checkmark to the output. Ex: $ tutor plugins list NAME STATUS VERSION cairn ✅ enabled 15.0.3 discovery installed 15.0.0 ecommerce installed 15.0.1 forum installed 14.0.0 mfe ✅ enabled 15.0.5 minio installed 15.1.0 --- .../20230316_094112_regis_better_highlight_enabled_plugins.md | 1 + tutor/commands/plugins.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 changelog.d/20230316_094112_regis_better_highlight_enabled_plugins.md diff --git a/changelog.d/20230316_094112_regis_better_highlight_enabled_plugins.md b/changelog.d/20230316_094112_regis_better_highlight_enabled_plugins.md new file mode 100644 index 0000000..70e0402 --- /dev/null +++ b/changelog.d/20230316_094112_regis_better_highlight_enabled_plugins.md @@ -0,0 +1 @@ +- [Improvement] Better highlight enabled plugins in `tutor plugins list`. (by @regisb) diff --git a/tutor/commands/plugins.py b/tutor/commands/plugins.py index 2b9bdee..0ed848e 100644 --- a/tutor/commands/plugins.py +++ b/tutor/commands/plugins.py @@ -335,7 +335,7 @@ def plugin_status(name: str) -> str: Return the status of a plugin. Either: "enabled", "installed" or "not installed". """ if plugins.is_loaded(name): - return "enabled" + return "✅ enabled" if plugins.is_installed(name): return "installed" return "not installed"