kojismokydingo.cli.users¶
Koji Smoky Dingo - CLI User Commands
- author:
Christopher O'Brien <obriencj@gmail.com>
- license:
GPL v3
- class ShowCGInfo(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 ShowPermissionInfo(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 ShowUserInfo(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 = 'Show information about a user or group'¶
Short description of this command, for use in the help output
- cli_perminfo(session, permission, verbose=False, by_date=False, json=False)[source]¶
Implements the
koji perminfo
command- Parameters:
session (ClientSession) -- an active koji client session
permission (str) -- the permission name to display information about
verbose (bool) -- also display who granted the permission and when
by_date (bool) -- sort the user list by the date they were granted the permission
json (bool) -- output the data as JSON
- Since:
1.0
- cli_userinfo(session, user, stats=False, json=False)[source]¶
Implements the
koji userinfo
command- Parameters:
- Raises:
NoSuchUser -- if the user specification doesn't correlate to a known user
- Since:
1.0
- get_userauth_str(userinfo)[source]¶
Provide a human-readable label for the koji auth type enum value in a koji user info dict. Returns None if the auth