mygithub.libinneed.workers.dev/stackitcloud/stackit-cli
Advanced tools
+1
-0
@@ -57,2 +57,3 @@ before: | ||
| changelog: | ||
| use: github | ||
| sort: asc | ||
@@ -59,0 +60,0 @@ filters: |
| ## stackit dns zone describe | ||
| Shows details of a DNS zone | ||
| Shows details of a DNS zone | ||
| ### Synopsis | ||
| Shows details of a DNS zone. | ||
| Shows details of a DNS zone. | ||
@@ -9,0 +9,0 @@ ``` |
@@ -34,5 +34,5 @@ ## stackit dns zone | ||
| * [stackit dns zone delete](./stackit_dns_zone_delete.md) - Deletes a DNS zone | ||
| * [stackit dns zone describe](./stackit_dns_zone_describe.md) - Shows details of a DNS zone | ||
| * [stackit dns zone describe](./stackit_dns_zone_describe.md) - Shows details of a DNS zone | ||
| * [stackit dns zone list](./stackit_dns_zone_list.md) - List DNS zones | ||
| * [stackit dns zone update](./stackit_dns_zone_update.md) - Updates a DNS zone | ||
@@ -7,3 +7,3 @@ ## stackit postgresflex backup update-schedule | ||
| Updates backup schedule for a PostgreSQL Flex instance. | ||
| Updates backup schedule for a PostgreSQL Flex instance. The current backup schedule can be seen in the output of the "stackit postgresflex instance describe" command. | ||
@@ -10,0 +10,0 @@ ``` |
+2
-2
@@ -10,3 +10,3 @@ module github.com/stackitcloud/stackit-cli | ||
| github.com/inhies/go-bytesize v0.0.0-20220417184213-4913239db9cf | ||
| github.com/jedib0t/go-pretty/v6 v6.5.6 | ||
| github.com/jedib0t/go-pretty/v6 v6.5.8 | ||
| github.com/spf13/cobra v1.8.0 | ||
@@ -17,3 +17,3 @@ github.com/spf13/pflag v1.0.5 | ||
| github.com/stackitcloud/stackit-sdk-go/services/authorization v0.2.0 | ||
| github.com/stackitcloud/stackit-sdk-go/services/dns v0.9.0 | ||
| github.com/stackitcloud/stackit-sdk-go/services/dns v0.9.1 | ||
| github.com/stackitcloud/stackit-sdk-go/services/mongodbflex v0.12.0 | ||
@@ -20,0 +20,0 @@ github.com/stackitcloud/stackit-sdk-go/services/opensearch v0.13.0 |
+2
-4
@@ -29,4 +29,2 @@ github.com/alessio/shellescape v1.4.2 h1:MHPfaU+ddJ0/bYWpgIeUnQUqKrlJ1S7BfEYPM4uEoM0= | ||
| github.com/inhies/go-bytesize v0.0.0-20220417184213-4913239db9cf/go.mod h1:yrqSXGoD/4EKfF26AOGzscPOgTTJcyAwM2rpixWT+t4= | ||
| github.com/jedib0t/go-pretty/v6 v6.5.6 h1:nKXVLqPfAwY7sWcYXdNZZZ2fjqDpAtj9UeWupgfUxSg= | ||
| github.com/jedib0t/go-pretty/v6 v6.5.6/go.mod h1:5LQIxa52oJ/DlDSLv0HEkWOFMDGoWkJb9ss5KqPpJBg= | ||
| github.com/jedib0t/go-pretty/v6 v6.5.8 h1:8BCzJdSvUbaDuRba4YVh+SKMGcAAKdkcF3SVFbrHAtQ= | ||
@@ -82,4 +80,4 @@ github.com/jedib0t/go-pretty/v6 v6.5.8/go.mod h1:zbn98qrYlh95FIhwwsbIip0LYpwSG8SUOScs+v9/t0E= | ||
| github.com/stackitcloud/stackit-sdk-go/services/authorization v0.2.0/go.mod h1:1sLuXa7Qvp9f+wKWdRjyNe8B2F8JX7nSTd8fBKadri4= | ||
| github.com/stackitcloud/stackit-sdk-go/services/dns v0.9.0 h1:sxvlcey7EcBc52rU6vYJEFguWkz9dNbSv2xJ3+c+97M= | ||
| github.com/stackitcloud/stackit-sdk-go/services/dns v0.9.0/go.mod h1:MdZcRbs19s2NLeJmSLSoqTzm9IPIQhE1ZEMpo9gePq0= | ||
| github.com/stackitcloud/stackit-sdk-go/services/dns v0.9.1 h1:pj2nAJvgzFSckA56rCPdi7StXGrr06go8qejI1weNJ8= | ||
| github.com/stackitcloud/stackit-sdk-go/services/dns v0.9.1/go.mod h1:MdZcRbs19s2NLeJmSLSoqTzm9IPIQhE1ZEMpo9gePq0= | ||
| github.com/stackitcloud/stackit-sdk-go/services/logme v0.13.0 h1:/wqs+pfHSjFWTakJVQGD/KwArxmFN8qdYrJDUgA1Gxw= | ||
@@ -86,0 +84,0 @@ github.com/stackitcloud/stackit-sdk-go/services/logme v0.13.0/go.mod h1:bj9cn1treNSxKTRCEmESwqfENN8vCYn60HUnEA0P83c= |
@@ -91,2 +91,30 @@ package set | ||
| configureFlags(cmd) | ||
| cmd.SetHelpTemplate( // Slightly modified help template to merge the command level Flags and Global Flags in a single section | ||
| `Usage:{{if .Runnable}} | ||
| {{.UseLine}}{{end}}{{if .HasAvailableSubCommands}} | ||
| {{.CommandPath}} [command]{{end}}{{if gt (len .Aliases) 0}} | ||
| Aliases: | ||
| {{.NameAndAliases}}{{end}}{{if .HasExample}} | ||
| Examples: | ||
| {{.Example}}{{end}}{{if .HasAvailableSubCommands}}{{$cmds := .Commands}}{{if eq (len .Groups) 0}} | ||
| Available Commands:{{range $cmds}}{{if (or .IsAvailableCommand (eq .Name "help"))}} | ||
| {{rpad .Name .NamePadding }} {{.Short}}{{end}}{{end}}{{else}}{{range $group := .Groups}} | ||
| {{.Title}}{{range $cmds}}{{if (and (eq .GroupID $group.ID) (or .IsAvailableCommand (eq .Name "help")))}} | ||
| {{rpad .Name .NamePadding }} {{.Short}}{{end}}{{end}}{{end}}{{if not .AllChildCommandsHaveGroup}} | ||
| Additional Commands:{{range $cmds}}{{if (and (eq .GroupID "") (or .IsAvailableCommand (eq .Name "help")))}} | ||
| {{rpad .Name .NamePadding }} {{.Short}}{{end}}{{end}}{{end}}{{end}}{{end}}{{if .HasAvailableLocalFlags}} | ||
| Flags: | ||
| {{.Flags.FlagUsages | trimTrailingWhitespaces}}{{end}}{{if .HasHelpSubCommands}} | ||
| Additional help topics:{{range .Commands}}{{if .IsAdditionalHelpTopicCommand}} | ||
| {{rpad .CommandPath .CommandPathPadding}} {{.Short}}{{end}}{{end}}{{end}}{{if .HasAvailableSubCommands}} | ||
| Use "{{.CommandPath}} [command] --help" for more information about a command.{{end}} | ||
| `) | ||
| return cmd | ||
@@ -93,0 +121,0 @@ } |
@@ -33,4 +33,4 @@ package describe | ||
| Use: fmt.Sprintf("describe %s", zoneIdArg), | ||
| Short: "Shows details of a DNS zone", | ||
| Long: "Shows details of a DNS zone.", | ||
| Short: "Shows details of a DNS zone", | ||
| Long: "Shows details of a DNS zone.", | ||
| Args: args.SingleArg(zoneIdArg, utils.ValidateUUID), | ||
@@ -37,0 +37,0 @@ Example: examples.Build( |
@@ -121,3 +121,3 @@ package describe | ||
| table.AddSeparator() | ||
| table.AddRow("START TIME", *backup.StartTime) | ||
| table.AddRow("CREATED AT", *backup.StartTime) | ||
| table.AddSeparator() | ||
@@ -124,0 +124,0 @@ table.AddRow("EXPIRES AT", backupExpireDate) |
@@ -35,3 +35,3 @@ package updateschedule | ||
| Short: "Updates backup schedule for a PostgreSQL Flex instance", | ||
| Long: "Updates backup schedule for a PostgreSQL Flex instance.", | ||
| Long: `Updates backup schedule for a PostgreSQL Flex instance. The current backup schedule can be seen in the output of the "stackit postgresflex instance describe" command.`, | ||
| Args: args.NoArgs, | ||
@@ -38,0 +38,0 @@ Example: examples.Build( |
@@ -127,2 +127,4 @@ package describe | ||
| table.AddSeparator() | ||
| table.AddRow("BACKUP SCHEDULE (UTC)", *instance.BackupSchedule) | ||
| table.AddSeparator() | ||
| err = table.Display(p) | ||
@@ -129,0 +131,0 @@ if err != nil { |