Skip to content

Commit

Permalink
fixed small inconsistencies in help enumerations
Browse files Browse the repository at this point in the history
  • Loading branch information
Zim Kalinowski committed Oct 18, 2024
1 parent c03bbbb commit 5e52863
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions internal/commands/server/firewall/create.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@ To edit the default rule of the firewall, set only ` + "`" + `--direction` + "`"

flagSet := &pflag.FlagSet{}

flagSet.StringVar(&s.direction, "direction", "", "Rule direction. Available: in / out")
flagSet.StringVar(&s.action, "action", "", "Rule action. Available: accept / drop")
flagSet.StringVar(&s.direction, "direction", "", "Rule direction. Available: in, out")
flagSet.StringVar(&s.action, "action", "", "Rule action. Available: accept, drop")
flagSet.StringVar(&s.family, "family", "", "IP family. Available: IPv4, IPv6")
flagSet.IntVar(&s.position, "position", 0, "Position in relation to other rules. Available: 1-1000")
flagSet.StringVar(&s.protocol, "protocol", "", "Protocol. Available: tcp, udp, icmp")
Expand Down
2 changes: 1 addition & 1 deletion internal/commands/storage/create.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ func applyCreateFlags(fs *pflag.FlagSet, dst, def *createParams) {
fs.StringVar(&dst.Tier, "tier", def.Tier, "Storage tier.")
config.AddToggleFlag(fs, &dst.encrypted, "encrypt", false, "Encrypt the storage.")
fs.StringVar(&dst.backupTime, "backup-time", def.backupTime, "The time when to create a backup in HH:MM. Empty value means no backups.")
fs.StringVar(&dst.BackupRule.Interval, "backup-interval", def.BackupRule.Interval, "The interval of the backup.\nAvailable: daily,mon,tue,wed,thu,fri,sat,sun")
fs.StringVar(&dst.BackupRule.Interval, "backup-interval", def.BackupRule.Interval, "The interval of the backup.\nAvailable: daily, mon, tue, wed, thu, fri, sat, sun")
fs.IntVar(&dst.BackupRule.Retention, "backup-retention", def.BackupRule.Retention, "How long to store the backups in days. The accepted range is 1-1095")
}

Expand Down
2 changes: 1 addition & 1 deletion internal/commands/storage/modify.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ func (s *modifyCommand) InitCommand() {
flagSet.StringVar(&s.params.Title, "title", defaultModifyParams.Title, "A short, informational description.")
flagSet.IntVar(&s.params.Size, "size", defaultModifyParams.Size, "Size of the storage (GiB).")
flagSet.StringVar(&s.params.backupTime, "backup-time", s.params.backupTime, "The time when to create a backup in HH:MM. Empty value means no backups.")
flagSet.StringVar(&s.params.backupInterval, "backup-interval", "", "The interval of the backup.\nAvailable: daily,mon,tue,wed,thu,fri,sat,sun")
flagSet.StringVar(&s.params.backupInterval, "backup-interval", "", "The interval of the backup.\nAvailable: daily, mon, tue, wed, thu, fri, sat, sun")
flagSet.IntVar(&s.params.backupRetention, "backup-retention", 0, "How long to store the backups in days. The accepted range is 1-1095.")
config.AddEnableOrDisableFlag(flagSet, &s.autoresizePartitionFilesystem, false, "filesystem-autoresize", "automatic resize of partition and filesystem when modifying storage size. Note that before the resize attempt is made, backup of the storage will be taken. If the resize attempt fails, the backup will be used to restore the storage and then deleted. If the resize attempt succeeds, backup will be kept. Taking and keeping backups incure costs.")

Expand Down

0 comments on commit 5e52863

Please sign in to comment.