Skip to content

Commit d8015a3

Browse files
committed
edit flag descriptions in create and update command
1 parent ef7296e commit d8015a3

File tree

4 files changed

+24
-24
lines changed

4 files changed

+24
-24
lines changed

docs/stackit_beta_network_create.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,17 +33,17 @@ stackit beta network create [flags]
3333

3434
```
3535
-h, --help Help for "stackit beta network create"
36-
--ipv4-dns-name-servers strings List of DNS name servers for IPv4. Nameservers cannot be defined for routed networks.
37-
--ipv4-gateway string The IPv4 gateway of a network. If not specified, the first IP of the network will be assigned as the gateway. If 'null' is sent, then the network doesn't have a gateway.
36+
--ipv4-dns-name-servers strings List of DNS name servers for IPv4. Nameservers cannot be defined for routed networks
37+
--ipv4-gateway string The IPv4 gateway of a network. If not specified, the first IP of the network will be assigned as the gateway
3838
--ipv4-prefix string The IPv4 prefix of the network (CIDR)
3939
--ipv4-prefix-length int The prefix length of the IPv4 network
40-
--ipv6-dns-name-servers strings List of DNS name servers for IPv6. Nameservers cannot be defined for routed networks.
41-
--ipv6-gateway string The IPv6 gateway of a network. If not specified, the first IP of the network will be assigned as the gateway. If 'null' is sent, then the network doesn't have a gateway.
40+
--ipv6-dns-name-servers strings List of DNS name servers for IPv6. Nameservers cannot be defined for routed networks
41+
--ipv6-gateway string The IPv6 gateway of a network. If not specified, the first IP of the network will be assigned as the gateway
4242
--ipv6-prefix string The IPv6 prefix of the network (CIDR)
4343
--ipv6-prefix-length int The prefix length of the IPv6 network
4444
-n, --name string Network name
45-
--no-ipv4-gateway If set to true, the network doesn't have an IPv4 gateway.
46-
--no-ipv6-gateway If set to true, the network doesn't have an IPv6 gateway.
45+
--no-ipv4-gateway If set to true, the network doesn't have an IPv4 gateway
46+
--no-ipv6-gateway If set to true, the network doesn't have an IPv6 gateway
4747
--routed If set to true, the network is routed and therefore accessible from other networks
4848
```
4949

docs/stackit_beta_network_update.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,13 @@ stackit beta network update [flags]
3333

3434
```
3535
-h, --help Help for "stackit beta network update"
36-
--ipv4-dns-name-servers strings List of DNS name servers IPv4. Nameservers cannot be defined for routed networks.
37-
--ipv4-gateway string The IPv4 gateway of a network. If not specified, the first IP of the network will be assigned as the gateway. If 'null' is sent, then the network doesn't have a gateway.
38-
--ipv6-dns-name-servers strings List of DNS name servers for IPv6. Nameservers cannot be defined for routed networks.
39-
--ipv6-gateway string The IPv6 gateway of a network. If not specified, the first IP of the network will be assigned as the gateway. If 'null' is sent, then the network doesn't have a gateway.
36+
--ipv4-dns-name-servers strings List of DNS name servers IPv4. Nameservers cannot be defined for routed networks
37+
--ipv4-gateway string The IPv4 gateway of a network. If not specified, the first IP of the network will be assigned as the gateway
38+
--ipv6-dns-name-servers strings List of DNS name servers for IPv6. Nameservers cannot be defined for routed networks
39+
--ipv6-gateway string The IPv6 gateway of a network. If not specified, the first IP of the network will be assigned as the gateway
4040
-n, --name string Network name
41-
--no-ipv4-gateway If set to true, the network doesn't have an IPv4 gateway.
42-
--no-ipv6-gateway If set to true, the network doesn't have an IPv6 gateway.
41+
--no-ipv4-gateway If set to true, the network doesn't have an IPv4 gateway
42+
--no-ipv6-gateway If set to true, the network doesn't have an IPv6 gateway
4343
--routed If set to true, the network is routed and therefore accessible from other networks
4444
```
4545

internal/cmd/beta/network/create/create.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -135,17 +135,17 @@ func NewCmd(p *print.Printer) *cobra.Command {
135135

136136
func configureFlags(cmd *cobra.Command) {
137137
cmd.Flags().StringP(nameFlag, "n", "", "Network name")
138-
cmd.Flags().StringSlice(ipv4DnsNameServersFlag, []string{}, "List of DNS name servers for IPv4. Nameservers cannot be defined for routed networks.")
138+
cmd.Flags().StringSlice(ipv4DnsNameServersFlag, []string{}, "List of DNS name servers for IPv4. Nameservers cannot be defined for routed networks")
139139
cmd.Flags().Int64(ipv4PrefixLengthFlag, 0, "The prefix length of the IPv4 network")
140140
cmd.Flags().String(ipv4PrefixFlag, "", "The IPv4 prefix of the network (CIDR)")
141-
cmd.Flags().String(ipv4GatewayFlag, "", "The IPv4 gateway of a network. If not specified, the first IP of the network will be assigned as the gateway. If 'null' is sent, then the network doesn't have a gateway.")
142-
cmd.Flags().StringSlice(ipv6DnsNameServersFlag, []string{}, "List of DNS name servers for IPv6. Nameservers cannot be defined for routed networks.")
141+
cmd.Flags().String(ipv4GatewayFlag, "", "The IPv4 gateway of a network. If not specified, the first IP of the network will be assigned as the gateway")
142+
cmd.Flags().StringSlice(ipv6DnsNameServersFlag, []string{}, "List of DNS name servers for IPv6. Nameservers cannot be defined for routed networks")
143143
cmd.Flags().Int64(ipv6PrefixLengthFlag, 0, "The prefix length of the IPv6 network")
144144
cmd.Flags().String(ipv6PrefixFlag, "", "The IPv6 prefix of the network (CIDR)")
145-
cmd.Flags().String(ipv6GatewayFlag, "", "The IPv6 gateway of a network. If not specified, the first IP of the network will be assigned as the gateway. If 'null' is sent, then the network doesn't have a gateway.")
145+
cmd.Flags().String(ipv6GatewayFlag, "", "The IPv6 gateway of a network. If not specified, the first IP of the network will be assigned as the gateway")
146146
cmd.Flags().Bool(routedFlag, false, "If set to true, the network is routed and therefore accessible from other networks")
147-
cmd.Flags().Bool(noIpv4Gateway, false, "If set to true, the network doesn't have an IPv4 gateway.")
148-
cmd.Flags().Bool(noIpv6Gateway, false, "If set to true, the network doesn't have an IPv6 gateway.")
147+
cmd.Flags().Bool(noIpv4Gateway, false, "If set to true, the network doesn't have an IPv4 gateway")
148+
cmd.Flags().Bool(noIpv6Gateway, false, "If set to true, the network doesn't have an IPv6 gateway")
149149

150150
cmd.MarkFlagsMutuallyExclusive(routedFlag, ipv4DnsNameServersFlag)
151151
cmd.MarkFlagsMutuallyExclusive(routedFlag, ipv6DnsNameServersFlag)

internal/cmd/beta/network/update/update.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -135,12 +135,12 @@ func NewCmd(p *print.Printer) *cobra.Command {
135135
func configureFlags(cmd *cobra.Command) {
136136
cmd.Flags().StringP(nameFlag, "n", "", "Network name")
137137
cmd.Flags().Bool(routedFlag, false, "If set to true, the network is routed and therefore accessible from other networks")
138-
cmd.Flags().StringSlice(ipv4DnsNameServersFlag, nil, "List of DNS name servers IPv4. Nameservers cannot be defined for routed networks.")
139-
cmd.Flags().String(ipv4GatewayFlag, "", "The IPv4 gateway of a network. If not specified, the first IP of the network will be assigned as the gateway. If 'null' is sent, then the network doesn't have a gateway.")
140-
cmd.Flags().StringSlice(ipv6DnsNameServersFlag, nil, "List of DNS name servers for IPv6. Nameservers cannot be defined for routed networks.")
141-
cmd.Flags().String(ipv6GatewayFlag, "", "The IPv6 gateway of a network. If not specified, the first IP of the network will be assigned as the gateway. If 'null' is sent, then the network doesn't have a gateway.")
142-
cmd.Flags().Bool(noIpv4Gateway, false, "If set to true, the network doesn't have an IPv4 gateway.")
143-
cmd.Flags().Bool(noIpv6Gateway, false, "If set to true, the network doesn't have an IPv6 gateway.")
138+
cmd.Flags().StringSlice(ipv4DnsNameServersFlag, nil, "List of DNS name servers IPv4. Nameservers cannot be defined for routed networks")
139+
cmd.Flags().String(ipv4GatewayFlag, "", "The IPv4 gateway of a network. If not specified, the first IP of the network will be assigned as the gateway")
140+
cmd.Flags().StringSlice(ipv6DnsNameServersFlag, nil, "List of DNS name servers for IPv6. Nameservers cannot be defined for routed networks")
141+
cmd.Flags().String(ipv6GatewayFlag, "", "The IPv6 gateway of a network. If not specified, the first IP of the network will be assigned as the gateway")
142+
cmd.Flags().Bool(noIpv4Gateway, false, "If set to true, the network doesn't have an IPv4 gateway")
143+
cmd.Flags().Bool(noIpv6Gateway, false, "If set to true, the network doesn't have an IPv6 gateway")
144144

145145
cmd.MarkFlagsMutuallyExclusive(routedFlag, ipv4DnsNameServersFlag)
146146
cmd.MarkFlagsMutuallyExclusive(routedFlag, ipv6DnsNameServersFlag)

0 commit comments

Comments
 (0)