extensions-tool: Show Philip some info
Add a 'show' alias for the previously added 'info' command because it makes sense: https://twitter.com/pwithnall/status/1036895943004762112 https://gitlab.gnome.org/GNOME/gnome-shell/issues/1234
This commit is contained in:
parent
07ad4d8911
commit
369e400e32
@ -5,7 +5,7 @@
|
|||||||
################################################################################
|
################################################################################
|
||||||
|
|
||||||
__gnome_extensions() {
|
__gnome_extensions() {
|
||||||
local commands="version enable disable info list create"
|
local commands="version enable disable info show list create"
|
||||||
local COMMAND=${COMP_WORDS[1]}
|
local COMMAND=${COMP_WORDS[1]}
|
||||||
|
|
||||||
_init_completion -s || return
|
_init_completion -s || return
|
||||||
@ -29,7 +29,7 @@ __gnome_extensions() {
|
|||||||
enable)
|
enable)
|
||||||
local list_opt=--disabled
|
local list_opt=--disabled
|
||||||
;;&
|
;;&
|
||||||
enable|disable|info)
|
enable|disable|info|show)
|
||||||
COMPREPLY=($(compgen -W "`gnome-extensions list $list_opt`" -- "$2"))
|
COMPREPLY=($(compgen -W "`gnome-extensions list $list_opt`" -- "$2"))
|
||||||
return 0
|
return 0
|
||||||
;;
|
;;
|
||||||
|
@ -160,6 +160,7 @@ usage (void)
|
|||||||
g_printerr (" disable %s\n", _("Disable extension"));
|
g_printerr (" disable %s\n", _("Disable extension"));
|
||||||
g_printerr (" list %s\n", _("List extensions"));
|
g_printerr (" list %s\n", _("List extensions"));
|
||||||
g_printerr (" info %s\n", _("Show extension info"));
|
g_printerr (" info %s\n", _("Show extension info"));
|
||||||
|
g_printerr (" show %s\n", _("Show extension info"));
|
||||||
g_printerr (" create %s\n", _("Create extension"));
|
g_printerr (" create %s\n", _("Create extension"));
|
||||||
g_printerr ("\n");
|
g_printerr ("\n");
|
||||||
g_printerr (_("Use %s to get detailed help.\n"), "“gnome-extensions help COMMAND”");
|
g_printerr (_("Use %s to get detailed help.\n"), "“gnome-extensions help COMMAND”");
|
||||||
@ -222,6 +223,8 @@ main (int argc, char *argv[])
|
|||||||
return handle_list (argc, argv, do_help);
|
return handle_list (argc, argv, do_help);
|
||||||
else if (g_str_equal (command, "info"))
|
else if (g_str_equal (command, "info"))
|
||||||
return handle_info (argc, argv, do_help);
|
return handle_info (argc, argv, do_help);
|
||||||
|
else if (g_str_equal (command, "show"))
|
||||||
|
return handle_info (argc, argv, do_help);
|
||||||
else if (g_str_equal (command, "create"))
|
else if (g_str_equal (command, "create"))
|
||||||
return handle_create (argc, argv, do_help);
|
return handle_create (argc, argv, do_help);
|
||||||
else
|
else
|
||||||
|
@ -21,6 +21,8 @@ SYNOPSIS
|
|||||||
|
|
||||||
*gnome-extensions* info 'UUID'
|
*gnome-extensions* info 'UUID'
|
||||||
|
|
||||||
|
*gnome-extensions* show 'UUID'
|
||||||
|
|
||||||
*gnome-extensions* list ['OPTION'...]
|
*gnome-extensions* list ['OPTION'...]
|
||||||
|
|
||||||
*gnome-extensions* create ['OPTION'...]
|
*gnome-extensions* create ['OPTION'...]
|
||||||
@ -56,6 +58,9 @@ If the extension is not enabled, the command will do nothing.
|
|||||||
Show details of the extension identified by 'UUID', including name,
|
Show details of the extension identified by 'UUID', including name,
|
||||||
description and state.
|
description and state.
|
||||||
|
|
||||||
|
*show* 'UUID'::
|
||||||
|
Synonym of info.
|
||||||
|
|
||||||
*list* ['OPTION'...]::
|
*list* ['OPTION'...]::
|
||||||
Displays a list of installed extensions.
|
Displays a list of installed extensions.
|
||||||
+
|
+
|
||||||
|
Loading…
Reference in New Issue
Block a user