Skip to content

Commit d6004ae

Browse files
author
Jonas Gottlieb
committed
fix: examples
1 parent a9fe026 commit d6004ae

5 files changed

Lines changed: 14 additions & 14 deletions

File tree

internal/cmd/network-area/routingtable/create/create.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,19 +46,19 @@ func NewCmd(params *types.CmdParams) *cobra.Command {
4646
Example: examples.Build(
4747
examples.NewExample(
4848
`Create a routing-table with name "rt"`,
49-
`stackit routing-table create --organization-id xxx --network-area-id yyy --name "rt"`,
49+
`$ stackit network-area routing-table create --organization-id xxx --network-area-id yyy --name "rt"`,
5050
),
5151
examples.NewExample(
5252
`Create a routing-table with name "rt" and description "some description"`,
53-
`stackit routing-table create --organization-id xxx --network-area-id yyy --name "rt" --description "some description"`,
53+
`$ stackit network-area routing-table create --organization-id xxx --network-area-id yyy --name "rt" --description "some description"`,
5454
),
5555
examples.NewExample(
5656
`Create a routing-table with name "rt" with system routes disabled`,
57-
`stackit routing-table create --organization-id xxx --network-area-id yyy --name "rt" --system-routes=false`,
57+
`$ stackit network-area routing-table create --organization-id xxx --network-area-id yyy --name "rt" --system-routes=false`,
5858
),
5959
examples.NewExample(
6060
`Create a routing-table with name "rt" with dynamic routes disabled`,
61-
`stackit routing-table create --organization-id xxx --network-area-id yyy --name "rt" --dynamic-routes=false`,
61+
`$ stackit network-area routing-table create --organization-id xxx --network-area-id yyy --name "rt" --dynamic-routes=false`,
6262
),
6363
),
6464
RunE: func(cmd *cobra.Command, _ []string) error {

internal/cmd/network-area/routingtable/delete/delete.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ func NewCmd(params *types.CmdParams) *cobra.Command {
3838
Example: examples.Build(
3939
examples.NewExample(
4040
`Delete a routing-table with ID "xxx"`,
41-
`$ stackit routing-table delete xxx --organization-id yyy --network-area-id zzz`,
41+
`$ stackit network-area routing-table delete xxx --organization-id yyy --network-area-id zzz`,
4242
),
4343
),
4444
RunE: func(cmd *cobra.Command, args []string) error {

internal/cmd/network-area/routingtable/describe/describe.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ func NewCmd(params *types.CmdParams) *cobra.Command {
4040
Example: examples.Build(
4141
examples.NewExample(
4242
`Describe a routing-table`,
43-
`$ stackit routing-table describe xxx --organization-id xxx --network-area-id yyy`,
43+
`$ stackit network-area routing-table describe xxx --organization-id xxx --network-area-id yyy`,
4444
),
4545
),
4646
RunE: func(cmd *cobra.Command, args []string) error {

internal/cmd/network-area/routingtable/list/list.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,15 +43,15 @@ func NewCmd(params *types.CmdParams) *cobra.Command {
4343
Example: examples.Build(
4444
examples.NewExample(
4545
`List all routing-tables`,
46-
`$ stackit routing-table list --organization-id xxx --network-area-id yyy`,
46+
`$ stackit network-area routing-table list --organization-id xxx --network-area-id yyy`,
4747
),
4848
examples.NewExample(
4949
`List all routing-tables with labels`,
50-
`$ stackit routing-table list --label-selector env=dev,env=rc --organization-id xxx --network-area-id yyy`,
50+
`$ stackit network-area routing-table list --label-selector env=dev,env=rc --organization-id xxx --network-area-id yyy`,
5151
),
5252
examples.NewExample(
5353
`List all routing-tables with labels and set limit to 10`,
54-
`$ stackit routing-table list --label-selector env=dev,env=rc --limit 10 --organization-id xxx --network-area-id yyy`,
54+
`$ stackit network-area routing-table list --label-selector env=dev,env=rc --limit 10 --organization-id xxx --network-area-id yyy`,
5555
),
5656
),
5757
RunE: func(cmd *cobra.Command, _ []string) error {

internal/cmd/network-area/routingtable/update/update.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -49,23 +49,23 @@ func NewCmd(params *types.CmdParams) *cobra.Command {
4949
Example: examples.Build(
5050
examples.NewExample(
5151
`Updates the label(s) of a routing-table with ID "xxx" in organization with ID "yyy" and network-area with ID "zzz"`,
52-
"$ stackit routing-table update xxx --labels key=value,foo=bar --organization-id yyy --network-area-id zzz",
52+
"$ stackit network-area routing-table update xxx --labels key=value,foo=bar --organization-id yyy --network-area-id zzz",
5353
),
5454
examples.NewExample(
5555
`Updates the name of a routing-table with ID "xxx" in organization with ID "yyy" and network-area with ID "zzz"`,
56-
"$ stackit routing-table update xxx --name foo --organization-id yyy --network-area-id zzz",
56+
"$ stackit network-area routing-table update xxx --name foo --organization-id yyy --network-area-id zzz",
5757
),
5858
examples.NewExample(
5959
`Updates the description of a routing-table with ID "xxx" in organization with ID "yyy" and network-area with ID "zzz"`,
60-
"$ stackit routing-table update xxx --description foo --organization-id yyy --network-area-id zzz",
60+
"$ stackit network-area routing-table update xxx --description foo --organization-id yyy --network-area-id zzz",
6161
),
6262
examples.NewExample(
6363
`Disables the dynamic routes of a routing-table with ID "xxx" in organization with ID "yyy" and network-area with ID "zzz"`,
64-
"$ stackit routing-table update xxx --organization-id yyy --network-area-id zzz --dynamic-routes=false",
64+
"$ stackit network-area routing-table update xxx --organization-id yyy --network-area-id zzz --dynamic-routes=false",
6565
),
6666
examples.NewExample(
6767
`Disables the system routes of a routing-table with ID "xxx" in organization with ID "yyy" and network-area with ID "zzz"`,
68-
"$ stackit routing-table update xxx --organization-id yyy --network-area-id zzz --system-routes=false",
68+
"$ stackit network-area routing-table update xxx --organization-id yyy --network-area-id zzz --system-routes=false",
6969
),
7070
),
7171
RunE: func(cmd *cobra.Command, args []string) error {

0 commit comments

Comments
 (0)