-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[noissue]
- Loading branch information
Showing
6 changed files
with
36 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Added generic content list command. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import gettext | ||
|
||
import click | ||
|
||
from pulpcore.cli.common.context import PulpContentContext, PulpContext, pass_pulp_context | ||
from pulpcore.cli.common.generic import list_command | ||
|
||
_ = gettext.gettext | ||
|
||
|
||
@click.group() | ||
@pass_pulp_context | ||
@click.pass_context | ||
def content(ctx: click.Context, pulp_ctx: PulpContext) -> None: | ||
""" | ||
Perform actions on all content units. | ||
Please look for the plugin specific content commands for more detailed actions. | ||
i.e. 'pulp file content <...>' | ||
""" | ||
pulp_ctx.needs_plugin("core", min_version="3.10") | ||
ctx.obj = PulpContentContext(pulp_ctx) | ||
|
||
|
||
content.add_command(list_command()) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters