Skip to content

Commit

Permalink
fix(docs): display examples correctly in RTD (#5139)
Browse files Browse the repository at this point in the history
Signed-off-by: Dariusz Duda <dariusz.duda@canonical.com>
  • Loading branch information
dariuszd21 authored Nov 7, 2024
1 parent 187187d commit 2b2cb61
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
3 changes: 2 additions & 1 deletion snapcraft/commands/legacy.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,8 @@ class StoreLegacyUploadMetadataCommand(LegacyAppCommand):
If --force is used, it will force the local metadata into the Store,
ignoring any possible conflict.
Examples:
Examples::
snapcraft upload-metadata my-snap_0.1_amd64.snap
snapcraft upload-metadata my-snap_0.1_amd64.snap --force
"""
Expand Down
6 changes: 4 additions & 2 deletions snapcraft/commands/manage.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,8 @@ class StoreReleaseCommand(AppCommand):
- <branch> is optional and dynamically creates a channel with a
specific expiration date.
Examples:
Examples::
snapcraft release my-snap 8 stable
snapcraft release my-snap 8 stable/my-branch
snapcraft release my-snap 9 beta,edge
Expand Down Expand Up @@ -120,7 +121,8 @@ class StoreCloseCommand(AppCommand):
As such, closing the 'candidate' channel for a snap would make
that snap begin to track the 'stable' channel.
Examples:
Examples::
snapcraft close my-snap --channel beta
"""
)
Expand Down
3 changes: 2 additions & 1 deletion snapcraft/commands/status.py
Original file line number Diff line number Diff line change
Expand Up @@ -431,7 +431,8 @@ class StoreListRevisionsCommand(AppCommand):
help_msg = "List published revisions for <snap-name>"
overview = textwrap.dedent(
"""
Examples:
Examples::
snapcraft list-revisions my-snap
snapcraft list-revisions my-snap --arch armhf
snapcraft revisions my-snap
Expand Down

0 comments on commit 2b2cb61

Please sign in to comment.