setter_helper
def setter_helper(path: str) -> Callable
Arguments:
path (str):
Returns:
_
@setter_helper("auth.username")
def _(username: str = typer.Argument(..., callback=username_callback))
Sets config value for auth.username
Arguments:
username
str, optional - (Default value = typer.Argument(..., callback=username_callback))
Returns:
_
@setter_helper("auth.password")
def _(password: str = typer.Option(
...,
hide_input=True,
callback=password_callback,
prompt=True,
prompt_required=True,
confirmation_prompt=True,
))
Sets config value for auth.password
Arguments:
password
str, optional - (Default value = typer.Option(...,hide_input=True,callback=password_callback,prompt=True,prompt_required=True,confirmation_prompt=True,))
Returns:
_
@setter_helper("auth.api_key")
def _(api_key: str = typer.Option(
...,
hide_input=True,
prompt=True,
prompt_required=True,
confirmation_prompt=True,
))
Sets config value for auth.api_key
Arguments:
api_key
str, optional - (Default value = typer.Option(...,hide_input=True,prompt=True,prompt_required=True,confirmation_prompt=True,))
Returns:
_
@setter_helper("server.host")
def _(host: str = typer.Argument(..., callback=host_callback))
Sets config value for server.host
Arguments:
host
str, optional - (Default value = typer.Argument(..., callback=host_callback))
Returns:
_
@setter_helper("server.port")
def _(port: str = typer.Argument(..., callback=port_callback))
Sets config value for server.port
Arguments:
port
str, optional - (Default value = typer.Argument(..., callback=port_callback))
Returns:
_
@setter_helper("server.insecure")
def _(insecure: str = typer.Argument(..., callback=insecure_callback))
Sets config value for server.insecure
Arguments:
insecure
str, optional - (Default value = typer.Argument(..., callback=insecure_callback))
Returns:
_
@setter_helper("server.workspace")
def _(workspace: str = typer.Argument(..., callback=workspace_callback))
Sets config value for server.workspace
Arguments:
workspace
str, optional - (Default value = typer.Argument(..., callback=workspace_callback))
Returns: