kojismokydingo.cli.archives

Koji Smoky Dingo - CLI Archive and RPM Commands

author:

Christopher O'Brien <obriencj@gmail.com>

license:

GPL v3

class ArchiveFiltering[source]

Bases: object

Mixin for SmokyDingos which need archive-filtering arguments

archive_arguments(parser)[source]
Parameters:

parser (ArgumentParser)

Return type:

ArgumentParser

validate_archive_options(parser, options)[source]
Parameters:
Return type:

None

class LatestArchives(name=None)[source]

Bases: AnonSmokyDingo, ArchiveFiltering

Parameters:

name (str) -- The name that this command is being represented as

arguments(parser)[source]

Override to add relevant arguments to the given parser instance. May return an alternative parser instance or None.

Parameters:

parser -- the parser to decorate with additional arguments

description: str = 'List latest archives from a tag'

Short description of this command, for use in the help output

handle(options)[source]

Perform the full set of actions for this command.

validate(parser, options)[source]

Override to perform validation on options values. Return value is ignored, use parser.error if needed.

class ListBuildArchives(name=None)[source]

Bases: AnonSmokyDingo, ArchiveFiltering

Parameters:

name (str) -- The name that this command is being represented as

arguments(parser)[source]

Override to add relevant arguments to the given parser instance. May return an alternative parser instance or None.

Parameters:

parser -- the parser to decorate with additional arguments

description: str = 'List archives from a build'

Short description of this command, for use in the help output

handle(options)[source]

Perform the full set of actions for this command.

validate(parser, options)[source]

Override to perform validation on options values. Return value is ignored, use parser.error if needed.

cli_latest_tag_archives(session, tagname, btype=None, atypes=(), arches=(), rpmkeys=(), inherit=True, path=None, json=False)[source]

Implements the koji latest-archives command

Parameters:
cli_list_build_archives(session, nvrs, btype=None, atypes=(), arches=(), rpmkeys=(), deleted=False, path=None, json=False)[source]

Implements the koji list-build-archives command

Parameters: