mirror of
https://github.com/ChristianLight/tutor.git
synced 2024-06-01 22:00:48 +00:00
feat: highlight enabled plugins with ✅
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
This commit is contained in:
parent
f984361d9c
commit
f42abe18ad
|
@ -0,0 +1 @@
|
||||||
|
- [Improvement] Better highlight enabled plugins in `tutor plugins list`. (by @regisb)
|
|
@ -335,7 +335,7 @@ def plugin_status(name: str) -> str:
|
||||||
Return the status of a plugin. Either: "enabled", "installed" or "not installed".
|
Return the status of a plugin. Either: "enabled", "installed" or "not installed".
|
||||||
"""
|
"""
|
||||||
if plugins.is_loaded(name):
|
if plugins.is_loaded(name):
|
||||||
return "enabled"
|
return "✅ enabled"
|
||||||
if plugins.is_installed(name):
|
if plugins.is_installed(name):
|
||||||
return "installed"
|
return "installed"
|
||||||
return "not installed"
|
return "not installed"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user