gitea.cli.user.update_settings
update_settings
Update user settings command.
Functions:
gitea.cli.user.update_settings.update_settings_command
update_settings_command(
ctx: Context,
diff_view_style: Annotated[
str | None,
Option(
"--diff-view-style",
help="The preferred diff view style.",
),
] = None,
full_name: Annotated[
str | None,
Option(
"--full-name", help="The full name of the user."
),
] = None,
hide_activity: Annotated[
bool | None,
Option(
"--hide-activity/--no-hide-activity",
help="Whether to hide the user's activity.",
),
] = None,
hide_email: Annotated[
bool | None,
Option(
"--hide-email/--no-hide-email",
help="Whether to hide the user's email.",
),
] = None,
language: Annotated[
str | None,
Option(
"--language", help="The preferred language."
),
] = None,
location: Annotated[
str | None,
Option(
"--location", help="The location of the user."
),
] = None,
theme: Annotated[
str | None,
Option("--theme", help="The preferred theme."),
] = None,
website: Annotated[
str | None,
Option("--website", help="The user's website."),
] = None,
account_name: Annotated[
str | None,
Option(
"--account-name",
help="Name of the account to use for authentication.",
),
] = None,
token: Annotated[
str | None,
Option(
"--token",
help="Token for authentication. If not provided, the token from the specified account will be used.",
),
] = None,
base_url: Annotated[
str | None,
Option(
"--base-url",
help="Base URL of the Gitea platform. If not provided, the base URL from the specified account will be used.",
),
] = None,
) -> None
Update user settings.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
ctx
|
Context
|
The Typer context. |
required |
diff_view_style
|
Annotated[str | None, Option('--diff-view-style', help='The preferred diff view style.')]
|
The preferred diff view style. |
None
|
full_name
|
Annotated[str | None, Option('--full-name', help='The full name of the user.')]
|
The full name of the user. |
None
|
hide_activity
|
Annotated[bool | None, Option('--hide-activity/--no-hide-activity', help="Whether to hide the user's activity.")]
|
Whether to hide the user's activity. |
None
|
hide_email
|
Annotated[bool | None, Option('--hide-email/--no-hide-email', help="Whether to hide the user's email.")]
|
Whether to hide the user's email. |
None
|
language
|
Annotated[str | None, Option('--language', help='The preferred language.')]
|
The preferred language. |
None
|
location
|
Annotated[str | None, Option('--location', help='The location of the user.')]
|
The location of the user. |
None
|
theme
|
Annotated[str | None, Option('--theme', help='The preferred theme.')]
|
The preferred theme. |
None
|
website
|
Annotated[str | None, Option('--website', help="The user's website.")]
|
The user's website. |
None
|
account_name
|
Annotated[str | None, Option('--account-name', help='Name of the account to use for authentication.')]
|
Name of the account to use for authentication. |
None
|
token
|
Annotated[str | None, Option('--token', help='Token for authentication. If not provided, the token from the specified account will be used.')]
|
Token for authentication. If not provided, the token from the specified account will be used. |
None
|
base_url
|
Annotated[str | None, Option('--base-url', help='Base URL of the Gitea platform. If not provided, the base URL from the specified account will be used.')]
|
Base URL of the Gitea platform. If not provided, the base URL from the specified account will be used. |
None
|