mini_buildd.cli module¶
- class mini_buildd.cli.ArgumentDefaultsRawTextHelpFormatter(prog, indent_increment=2, max_help_position=24, width=None)¶
Bases:
argparse.RawTextHelpFormatter
,argparse.ArgumentDefaultsHelpFormatter
Custom argparse (for mini-buildd[-tool]) help formatter (mixin): We like to use raw text, but also have default values shown.
- class mini_buildd.cli.DputCf(config='~/.dput.cf')¶
Bases:
object
Guess possible mini-buildd targets and their URL endpoints.
- first_target()¶
- target_completer(**_kwargs)¶
- first_http_url()¶
- http_url_completer(**_kwargs)¶
- get_target_ftp_url(target)¶
- get_target_http_url(target)¶
- class mini_buildd.cli.CLI(prog, description, epilog=None, allow_unknown=False)¶
Bases:
object
- LOG_FORMAT = '%(levelname)s: %(message)s [%(name)s:%(lineno)d, thread=%(threadName)s]'¶
- classmethod loggers()¶
Overwrite this method for custom subset of ‘syslog’, ‘file’, ‘console’.
- setup()¶
- abstract runcli()¶
- run()¶
- mini_buildd.cli.auth_log(msg)¶
Uff. Dirty hack to get an ‘auth’ log including the ssh fingerprint.
Needed (for now) by
m-b-ssh-uploader-command
,m-b-ssh-client-command
.Needs sshd on loglevel=VERBOSE, and the user needs access to auth.log (i.e., add user to group ‘adm’ in standard Debian).