Skip to content

Commit 0d7729a

Browse files
committed
fix(cdn): add cdn subcommand to beta, generate docs
1 parent 42d1196 commit 0d7729a

File tree

5 files changed

+115
-0
lines changed

5 files changed

+115
-0
lines changed

docs/stackit_beta.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ stackit beta [flags]
4242

4343
* [stackit](./stackit.md) - Manage STACKIT resources using the command line
4444
* [stackit beta alb](./stackit_beta_alb.md) - Manages application loadbalancers
45+
* [stackit beta cdn](./stackit_beta_cdn.md) - Manage CDN resources
4546
* [stackit beta kms](./stackit_beta_kms.md) - Provides functionality for KMS
4647
* [stackit beta sqlserverflex](./stackit_beta_sqlserverflex.md) - Provides functionality for SQLServer Flex
4748

docs/stackit_beta_cdn.md

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
## stackit beta cdn
2+
3+
Manage CDN resources
4+
5+
### Synopsis
6+
7+
Manage the lifecycle of CDN resources.
8+
9+
```
10+
stackit beta cdn [flags]
11+
```
12+
13+
### Options
14+
15+
```
16+
-h, --help Help for "stackit beta cdn"
17+
```
18+
19+
### Options inherited from parent commands
20+
21+
```
22+
-y, --assume-yes If set, skips all confirmation prompts
23+
--async If set, runs the command asynchronously
24+
-o, --output-format string Output format, one of ["json" "pretty" "none" "yaml"]
25+
-p, --project-id string Project ID
26+
--region string Target region for region-specific requests
27+
--verbosity string Verbosity of the CLI, one of ["debug" "info" "warning" "error"] (default "info")
28+
```
29+
30+
### SEE ALSO
31+
32+
* [stackit beta](./stackit_beta.md) - Contains beta STACKIT CLI commands
33+
* [stackit beta cdn distribution](./stackit_beta_cdn_distribution.md) - Manage CDN distributions
34+
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
## stackit beta cdn distribution
2+
3+
Manage CDN distributions
4+
5+
### Synopsis
6+
7+
Manage the lifecycle of CDN distributions.
8+
9+
```
10+
stackit beta cdn distribution [flags]
11+
```
12+
13+
### Options
14+
15+
```
16+
-h, --help Help for "stackit beta cdn distribution"
17+
```
18+
19+
### Options inherited from parent commands
20+
21+
```
22+
-y, --assume-yes If set, skips all confirmation prompts
23+
--async If set, runs the command asynchronously
24+
-o, --output-format string Output format, one of ["json" "pretty" "none" "yaml"]
25+
-p, --project-id string Project ID
26+
--region string Target region for region-specific requests
27+
--verbosity string Verbosity of the CLI, one of ["debug" "info" "warning" "error"] (default "info")
28+
```
29+
30+
### SEE ALSO
31+
32+
* [stackit beta cdn](./stackit_beta_cdn.md) - Manage CDN resources
33+
* [stackit beta cdn distribution list](./stackit_beta_cdn_distribution_list.md) - List CDN distributions
34+
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
## stackit beta cdn distribution list
2+
3+
List CDN distributions
4+
5+
### Synopsis
6+
7+
List all CDN distributions in your account.
8+
9+
```
10+
stackit beta cdn distribution list [flags]
11+
```
12+
13+
### Examples
14+
15+
```
16+
List all CDN distributions
17+
$ stackit beta cdn distribution list
18+
19+
List all CDN distributions sorted by id
20+
$ stackit beta cdn distribution list --sort-by=id
21+
```
22+
23+
### Options
24+
25+
```
26+
-h, --help Help for "stackit beta cdn distribution list"
27+
--sort-by string Sort entries by a specific field, one of ["id" "createdAt" "updatedAt" "originUrl" "status" "originUrlRelated"] (default "createdAt")
28+
```
29+
30+
### Options inherited from parent commands
31+
32+
```
33+
-y, --assume-yes If set, skips all confirmation prompts
34+
--async If set, runs the command asynchronously
35+
-o, --output-format string Output format, one of ["json" "pretty" "none" "yaml"]
36+
-p, --project-id string Project ID
37+
--region string Target region for region-specific requests
38+
--verbosity string Verbosity of the CLI, one of ["debug" "info" "warning" "error"] (default "info")
39+
```
40+
41+
### SEE ALSO
42+
43+
* [stackit beta cdn distribution](./stackit_beta_cdn_distribution.md) - Manage CDN distributions
44+

internal/cmd/beta/beta.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import (
44
"fmt"
55

66
"github.com/stackitcloud/stackit-cli/internal/cmd/beta/alb"
7+
"github.com/stackitcloud/stackit-cli/internal/cmd/beta/cdn"
78
"github.com/stackitcloud/stackit-cli/internal/cmd/beta/kms"
89
"github.com/stackitcloud/stackit-cli/internal/cmd/beta/sqlserverflex"
910
"github.com/stackitcloud/stackit-cli/internal/cmd/params"
@@ -40,4 +41,5 @@ func addSubcommands(cmd *cobra.Command, params *params.CmdParams) {
4041
cmd.AddCommand(sqlserverflex.NewCmd(params))
4142
cmd.AddCommand(alb.NewCmd(params))
4243
cmd.AddCommand(kms.NewCmd(params))
44+
cmd.AddCommand(cdn.NewCmd(params))
4345
}

0 commit comments

Comments
 (0)