Skip to content

Commit

Permalink
chore: feedback from PR
Browse files Browse the repository at this point in the history
Signed-off-by: Callahan Kovacs <callahan.kovacs@canonical.com>
  • Loading branch information
mr-cal committed Sep 6, 2024
1 parent d43477e commit 4c90cc9
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 5 deletions.
9 changes: 7 additions & 2 deletions docs/reference/commands.rst
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,12 @@ Store snap tracks

.. include:: commands/store-snap-tracks-commands.rst

Store assertions
Store validation sets
---------------------

.. include:: commands/store-validation-sets-commands.rst

Store registries
----------------

.. include:: commands/store-assertions-commands.rst
.. include:: commands/store-registries-commands.rst
7 changes: 6 additions & 1 deletion snapcraft/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,12 +132,17 @@
],
),
craft_cli.CommandGroup(
"Store Assertions",
"Store Validation Sets",
[
commands.StoreEditValidationSetsCommand,
commands.StoreLegacyListValidationSetsCommand,
commands.StoreLegacyValidateCommand,
commands.StoreLegacyGatedCommand,
],
),
craft_cli.CommandGroup(
"Store Registries",
[
commands.StoreListRegistriesCommand,
],
),
Expand Down
10 changes: 8 additions & 2 deletions snapcraft/commands/registries.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,13 @@ class StoreListRegistriesCommand(craft_application.commands.AppCommand):
help_msg = "List registries"
overview = textwrap.dedent(
"""
List registries for the authenticated account.
List all registries for the authenticated account.
Shows the account ID, name, revision, and last modified date of each registry.
If a name is provided, only the registry with that name will be listed.
Use the ``edit-registries`` command create and edit registries.
"""
)
_services: services.SnapcraftServiceFactory # type: ignore[reportIncompatibleVariableOverride]
Expand All @@ -44,7 +50,7 @@ def fill_parser(self, parser: "argparse.ArgumentParser") -> None:
metavar="name",
required=False,
type=str,
help="Name of registry set to list",
help="Name of the registry to list",
)
parser.add_argument(
"--format",
Expand Down

0 comments on commit 4c90cc9

Please sign in to comment.