Skip to content

Commit 4e92522

Browse files
committed
examples
Signed-off-by: Lukas Hoehl <[email protected]>
1 parent fe697cc commit 4e92522

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

docs/stackit_project_list.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ stackit project list [flags]
3131
```
3232
--creation-time-after string Filter by creation timestamp, in a date-time with the RFC3339 layout format, e.g. 2023-01-01T00:00:00Z. The list of projects that were created after the given timestamp will be shown
3333
-h, --help Help for "stackit project list"
34+
--lifecycle-state string Filter by lifecycle state (default "active")
3435
--limit int Maximum number of entries to list
3536
--member string Filter by member. The list of projects of which the member is part of will be shown
3637
--page-size int Number of items fetched in each API call. Does not affect the number of items in the command output (default 50)

internal/cmd/project/list/list.go

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -61,15 +61,12 @@ func NewCmd(params *params.CmdParams) *cobra.Command {
6161
examples.NewExample(
6262
`List all STACKIT projects that the authenticated user or service account is a member of`,
6363
"$ stackit project list"),
64-
examples.NewExample(
65-
`List all STACKIT projects that are children of a specific parent`,
66-
"$ stackit project list --parent-id xxx"),
67-
examples.NewExample(
68-
`List all STACKIT projects that match the given project IDs, located under the same parent resource`,
69-
"$ stackit project list --project-id-like xxx,yyy,zzz"),
7064
examples.NewExample(
7165
`List all STACKIT projects that a certain user is a member of`,
7266
"$ stackit project list --member [email protected]"),
67+
examples.NewExample(
68+
`List all STACKIT projects without regards to the lifecycle status`,
69+
"$ stackit project list --lifecycle-state=\"\""),
7370
),
7471
RunE: func(cmd *cobra.Command, args []string) error {
7572
model, err := parseInput(params.Printer, cmd, args)

0 commit comments

Comments
 (0)