kojismokydingo.cli.tags¶
Koji Smoky Dingo - CLI Tag and Target Commands
- author:
Christopher O'Brien <obriencj@gmail.com>
- license:
GPL v3
- class AffectedTargets(name=None)[source]¶
Bases:
AnonSmokyDingo
- 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
- class BlockEnvVar(name=None)[source]¶
Bases:
TagSmokyDingo
- 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
- class BlockRPMMacro(name=None)[source]¶
Bases:
TagSmokyDingo
- 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
- class CheckRepo(name=None)[source]¶
Bases:
AnonSmokyDingo
- 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
- class FilterTags(name=None)[source]¶
Bases:
AnonSmokyDingo
,TagSifting
- 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
- class ListEnvVars(name=None)[source]¶
Bases:
AnonSmokyDingo
- 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
- class ListRPMMacros(name=None)[source]¶
Bases:
AnonSmokyDingo
- 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
- class ListTagExtras(name=None)[source]¶
Bases:
AnonSmokyDingo
- 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
- exception NoSuchEnvVar[source]¶
Bases:
NoSuchTagExtra
- exception NoSuchMacro[source]¶
Bases:
NoSuchTagExtra
- class RemoveEnvVar(name=None)[source]¶
Bases:
TagSmokyDingo
- 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
- class RemoveRPMMacro(name=None)[source]¶
Bases:
TagSmokyDingo
- 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
- class RenumTagInheritance(name=None)[source]¶
Bases:
TagSmokyDingo
- 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
- class RepoQuery(name=None)[source]¶
Bases:
AnonSmokyDingo
- 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 = "Query the contents of a tag's repo"¶
Short description of this command, for use in the help output
- property enabled¶
- class SetEnvVar(name=None)[source]¶
Bases:
TagSmokyDingo
- 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
- class SetRPMMacro(name=None)[source]¶
Bases:
TagSmokyDingo
- 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
- class SwapTagInheritance(name=None)[source]¶
Bases:
TagSmokyDingo
- 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
- cli_affected_targets(session, tag_list, build_tags=False, info=False, quiet=None)[source]¶
Implements the
koji affected-targets
command- Parameters:
session (ClientSession) -- an active koji client session
tag_list (List[int | str | TagInfo]) -- list of tags by name or ID
build_tags (bool) -- output the names of the child build tags rather than the impacted targets
info (bool) -- print the info for impacted targets rather than just the name
quiet (bool | None) -- suppress summary output
- Raises:
NoSuchTag -- if any of the tags in tag_list could not be found
- Returns:
0 indicating there were impacted targets, or 1 if no impacted targets were found
- Since:
1.0
- Return type:
- cli_check_repo(session, tagname, target=False, quiet=False, verbose=False, show_events=False, utc=False)[source]¶
Implements the
koji check-repo
command
- cli_filter_tags(session, tag_list, search=None, regex=None, tag_sifter=None, sorting=None, outputs=None, strict=False)[source]¶
Implements the
koji filter-tags
command
- cli_repoquery(session, goptions, tagname, target=False, arch=None, cachedir=None, cacheonly=False, quiet=False, queryformat=None, keys=None, filterms=None)[source]¶
- cli_set_env_var(session, tagname, var, value=None, remove=False, block=False, target=False)[source]¶
If remove is True, value and block are ignored. The setting will be removed from the tag's extra settings.
If block is True, value is ignored. A block entry will be added to the tag's extra settings.
If remove and block are both False, then the value will be assigned to the tag's extra settings.
If target is True, then tagname is actually the name of a target. That target's build tag will be the tag that is therefore modified.
- cli_set_rpm_macro(session, tagname, macro, value=None, remove=False, block=False, target=False)[source]¶
If remove is True, value and block are ignored. The setting will be removed from the tag's extra settings.
If block is True, value is ignored. A block entry will be added to the tag's extra settings.
If remove and block are both False, then the value will be assigned to the tag's extra settings.
If target is True, then tagname is actually the name of a target. That target's build tag will be the tag that is therefore modified.