Skip to content

Commit

Permalink
Require version flag, remove default value (#296)
Browse files Browse the repository at this point in the history
  • Loading branch information
eberlep authored Apr 23, 2024
1 parent beeb40a commit eda262c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmd/postgres.go
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ postgres=#
postgresCreateCmd.Flags().StringP("project", "", "", "project of the database")
postgresCreateCmd.Flags().StringP("partition", "", "", "partition where the database should be created")
postgresCreateCmd.Flags().IntP("replicas", "", 1, "replicas of the database")
postgresCreateCmd.Flags().StringP("version", "", "12", "version of the database") // FIXME add possible values
postgresCreateCmd.Flags().StringP("version", "", "", "version of the database")
postgresCreateCmd.Flags().StringSliceP("sources", "", []string{"0.0.0.0/0"}, "networks which should be allowed to connect in CIDR notation")
postgresCreateCmd.Flags().StringSliceP("labels", "", []string{}, "labels to add to that postgres database")
postgresCreateCmd.Flags().StringP("cpu", "", "500m", "cpus for the database")
Expand All @@ -278,6 +278,7 @@ postgres=#
genericcli.Must(postgresCreateCmd.MarkFlagRequired("project"))
genericcli.Must(postgresCreateCmd.MarkFlagRequired("partition"))
genericcli.Must(postgresCreateCmd.MarkFlagRequired("backup-config"))
genericcli.Must(postgresCreateCmd.MarkFlagRequired("version"))
genericcli.Must(postgresCreateCmd.RegisterFlagCompletionFunc("project", c.comp.ProjectListCompletion))
genericcli.Must(postgresCreateCmd.RegisterFlagCompletionFunc("partition", c.comp.PostgresListPartitionsCompletion))
genericcli.Must(postgresCreateCmd.RegisterFlagCompletionFunc("version", c.comp.PostgresListVersionsCompletion))
Expand Down

0 comments on commit eda262c

Please sign in to comment.