From 3100ee2a9f0c4e142c48047e27cae28b31fa76e1 Mon Sep 17 00:00:00 2001 From: Philipp Eberle Date: Wed, 10 Apr 2024 13:56:42 +0200 Subject: [PATCH] Require version flag, remove default value --- cmd/postgres.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cmd/postgres.go b/cmd/postgres.go index 4ce3b20..db75973 100644 --- a/cmd/postgres.go +++ b/cmd/postgres.go @@ -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") @@ -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))