gitea.cli.config.update
update
Update command for config CLI.
Functions:
gitea.cli.config.update.update_command
update_command(
ctx: Context,
name: Annotated[
str, Option("--name", help="Name of the account.")
],
token: Annotated[
str | None,
Option("--token", help="Token for authentication."),
] = None,
base_url: Annotated[
str | None,
Option(
"--base-url",
help="Base URL of the Gitea platform.",
),
] = None,
default: Annotated[
bool | None,
Option("--default", help="Set as default account."),
] = None,
) -> None
Update the configuration of an existing platform.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
ctx
|
Context
|
Typer context. |
required |
name
|
Annotated[str, Option('--name', help='Name of the account.')]
|
Name of the account. |
required |
token
|
Annotated[str | None, Option('--token', help='Token for authentication.')]
|
Token for authentication. |
None
|
base_url
|
Annotated[str | None, Option('--base-url', help='Base URL of the Gitea platform.')]
|
Base URL of the platform. |
None
|
default
|
Annotated[bool | None, Option('--default', help='Set as default account.')]
|
Set as default account. |
None
|