Skip to content

extension tool: Unhide --list-templates

The --list-templates flag to gnome-extensions create has always existed, but it was set as a hidden option not visible in gnome-extensions create --help. Problem is, there's no way for a user to get the list of possible arguments to --template= without it.

After:

$ subprojects/extensions-tool/src/gnome-extensions create
gnome-extensions: UUID, name and description are required

Usage:
  gnome-extensions create [OPTION…]

Create a new extension

Application Options:
  --uuid=UUID                   The unique identifier of the new extension
  --name=NAME                   The user-visible name of the new extension
  --description=DESCRIPTION     A short description of what the extension does
  --gettext-domain=DOMAIN       The gettext domain used by the extension
  --settings-schema=SCHEMA      The GSettings schema used by the extension
  --template=TEMPLATE           The template to use for the new extension
  --prefs                       Include prefs.js template
  --list-templates              List the available extension templates
  -i, --interactive             Enter extension information interactively
  -q, --quiet                   Do not print error messages

$ subprojects/extensions-tool/src/gnome-extensions create --list-templates
plain
indicator
quick-settings

Merge request reports