gitea.cli.project.list
list
List projects command.
Functions:
gitea.cli.project.list.list_command
list_command(
ctx: Context,
owner: Annotated[
str,
Option("--owner", help="Owner of the repository."),
],
repository: Annotated[
str | None,
Option(
"--repository",
help="Name of the repository. Omit for organization projects.",
),
] = None,
state: Annotated[
Literal["open", "closed", "all"] | None,
Option("--state", help="Filter projects by state."),
] = None,
page: Annotated[
int | None,
Option(
"--page", help="The page number for pagination."
),
] = None,
limit: Annotated[
int | None,
Option(
"--limit",
help="The number of projects per page.",
),
] = 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
List projects in a repository.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
ctx
|
Context
|
The Typer context. |
required |
owner
|
Annotated[str, Option('--owner', help='Owner of the repository.')]
|
The owner of the repository. |
required |
repository
|
Annotated[str | None, Option('--repository', help='Name of the repository. Omit for organization projects.')]
|
The name of the repository, or None for organization projects. |
None
|
state
|
Annotated[Literal['open', 'closed', 'all'] | None, Option('--state', help='Filter projects by state.')]
|
Filter projects by state. |
None
|
page
|
Annotated[int | None, Option('--page', help='The page number for pagination.')]
|
The page number for pagination. |
None
|
limit
|
Annotated[int | None, Option('--limit', help='The number of projects per page.')]
|
The number of projects per page. |
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. |
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. |
None
|