6
0
mirror of https://github.com/ChristianLight/tutor.git synced 2024-12-13 06:37:46 +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:
Régis Behmo 2023-03-16 09:41:21 +01:00 committed by Régis Behmo
parent f984361d9c
commit f42abe18ad
2 changed files with 2 additions and 1 deletions

View File

@ -0,0 +1 @@
- [Improvement] Better highlight enabled plugins in `tutor plugins list`. (by @regisb)

View File

@ -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"