setter_helper
def setter_helper(path: str) -> CallableArguments:
path (str):
Returns:
_
@setter_helper("auth.username")
def _(username: Annotated[str,
typer.Argument(..., callback=username_callback)])Sets config value for auth.username
Arguments:
usernamestr, optional - (Default value = typer.Argument(..., callback=username_callback))
Returns:
_
@setter_helper("auth.password")
def _(password: Annotated[
str,
typer.Option(
...,
hide_input=True,
callback=password_callback,
prompt=True,
prompt_required=True,
confirmation_prompt=True,
),
])Sets config value for auth.password
Arguments:
passwordstr, 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: Annotated[
str,
typer.Option(...,
hide_input=True,
prompt=True,
prompt_required=True,
confirmation_prompt=True,
callback=api_key_callback),
])Sets config value for auth.api_key
Arguments:
api_key- Sets the api_key config in the config file.
Returns:
_
@setter_helper("server.url")
def _(url: Annotated[str, typer.Argument(..., callback=url_callback)])Sets config value for server.url
Arguments:
url- Sets the url config in the config file.
Returns:
_
@setter_helper("server.workspace")
def _(workspace: Annotated[str,
typer.Argument(..., callback=workspace_callback)])Sets config value for server.workspace
Arguments:
workspacestr, optional - (Default value = typer.Argument(..., callback=workspace_callback))
Returns: