gradient.cli.utils package

Submodules

gradient.cli.utils.flag_with_value module

https://stackoverflow.com/questions/40753999/python-click-make-option-value-optional

class gradient.cli.utils.flag_with_value.RegisterReaderOptionMixin

Bases: object

Mark this option as getting a _set option

register_reader = True
class gradient.cli.utils.flag_with_value.RegisterWriterOptionMixin

Bases: object

Fix the help for the _set suffix

get_help_record(ctx)
class gradient.cli.utils.flag_with_value.RegisterWriterCommandMixin

Bases: object

parse_args(ctx, args)

Translate any opt= to opt_set= as needed

class gradient.cli.utils.flag_with_value.GradientRegisterReaderOption(param_decls=None, show_default=False, prompt=False, confirmation_prompt=False, hide_input=False, is_flag=None, flag_value=None, multiple=False, count=False, allow_from_autoenv=True, type=None, help=None, hidden=False, show_choices=True, show_envvar=False, **attrs)

Bases: gradient.cli.utils.flag_with_value.RegisterReaderOptionMixin, gradient.cli.common.GradientOption

class gradient.cli.utils.flag_with_value.GradientRegisterWriterOption(param_decls=None, show_default=False, prompt=False, confirmation_prompt=False, hide_input=False, is_flag=None, flag_value=None, multiple=False, count=False, allow_from_autoenv=True, type=None, help=None, hidden=False, show_choices=True, show_envvar=False, **attrs)

Bases: gradient.cli.utils.flag_with_value.RegisterWriterOptionMixin, gradient.cli.common.GradientOption

class gradient.cli.utils.flag_with_value.GradientRegisterWriterCommand(*args, **kwargs)

Bases: click_didyoumean.DYMMixin, click_help_colors.core.HelpColorsMixin, gradient.cli.utils.flag_with_value.RegisterWriterCommandMixin, click.core.Command

Module contents