From 0a1699e71a5de33dbc57da97a72ae2a169f5717b Mon Sep 17 00:00:00 2001 From: Saad Assaf Date: Wed, 23 Oct 2024 11:41:35 +0200 Subject: [PATCH 1/3] config: Description was added to the filename parameter. --- create/create.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/create/create.go b/create/create.go index a121892..3ab2265 100644 --- a/create/create.go +++ b/create/create.go @@ -20,7 +20,7 @@ import ( ) type Cmd struct { - Filename string `short:"f" predictor:"file"` + Filename string `short:"f" help:"Specify the file containing the application definition." predictor:"file"` FromFile fromFile `cmd:"" default:"1" name:"-f " help:"Create any resource from a yaml or json file."` VCluster vclusterCmd `cmd:"" group:"infrastructure.nine.ch" name:"vcluster" help:"Create a new vcluster."` APIServiceAccount apiServiceAccountCmd `cmd:"" group:"iam.nine.ch" name:"apiserviceaccount" aliases:"asa" help:"Create a new API Service Account."` From 9ed661c53da1b396f199370d6755a6a4c1c4aaef Mon Sep 17 00:00:00 2001 From: Saad Assaf Date: Wed, 23 Oct 2024 13:34:26 +0200 Subject: [PATCH 2/3] config: changing the descp to the recommended one --- create/create.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/create/create.go b/create/create.go index 3ab2265..f696f19 100644 --- a/create/create.go +++ b/create/create.go @@ -20,7 +20,7 @@ import ( ) type Cmd struct { - Filename string `short:"f" help:"Specify the file containing the application definition." predictor:"file"` + Filename string `short:"f" help:"Apply any resource from a yaml or json file." predictor:"file"` FromFile fromFile `cmd:"" default:"1" name:"-f " help:"Create any resource from a yaml or json file."` VCluster vclusterCmd `cmd:"" group:"infrastructure.nine.ch" name:"vcluster" help:"Create a new vcluster."` APIServiceAccount apiServiceAccountCmd `cmd:"" group:"iam.nine.ch" name:"apiserviceaccount" aliases:"asa" help:"Create a new API Service Account."` From 6cef4dbcd9e7a28000294f6b18e876c3b27d611f Mon Sep 17 00:00:00 2001 From: Saad Assaf Date: Wed, 23 Oct 2024 13:42:51 +0200 Subject: [PATCH 3/3] config: Replace the word applay with create --- create/create.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/create/create.go b/create/create.go index f696f19..c5aa1e9 100644 --- a/create/create.go +++ b/create/create.go @@ -20,7 +20,7 @@ import ( ) type Cmd struct { - Filename string `short:"f" help:"Apply any resource from a yaml or json file." predictor:"file"` + Filename string `short:"f" help:"Create any resource from a yaml or json file." predictor:"file"` FromFile fromFile `cmd:"" default:"1" name:"-f " help:"Create any resource from a yaml or json file."` VCluster vclusterCmd `cmd:"" group:"infrastructure.nine.ch" name:"vcluster" help:"Create a new vcluster."` APIServiceAccount apiServiceAccountCmd `cmd:"" group:"iam.nine.ch" name:"apiserviceaccount" aliases:"asa" help:"Create a new API Service Account."`