From dc388698a045579c210689586b2d974973003f9c Mon Sep 17 00:00:00 2001 From: sunlintong Date: Tue, 3 Apr 2018 16:07:52 +0800 Subject: [PATCH 1/2] Ouput --> Output --- cmd/kops/create_cluster.go | 2 +- cmd/kops/create_ig.go | 2 +- cmd/kops/validate_cluster.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cmd/kops/create_cluster.go b/cmd/kops/create_cluster.go index 1035fd5339..ed56418277 100644 --- a/cmd/kops/create_cluster.go +++ b/cmd/kops/create_cluster.go @@ -331,7 +331,7 @@ func NewCmdCreateCluster(f *util.Factory, out io.Writer) *cobra.Command { // DryRun mode that will print YAML or JSON cmd.Flags().BoolVar(&options.DryRun, "dry-run", options.DryRun, "If true, only print the object that would be sent, without sending it. This flag can be used to create a cluster YAML or JSON manifest.") - cmd.Flags().StringVarP(&options.Output, "output", "o", options.Output, "Ouput format. One of json|yaml. Used with the --dry-run flag.") + cmd.Flags().StringVarP(&options.Output, "output", "o", options.Output, "Output format. One of json|yaml. Used with the --dry-run flag.") if featureflag.SpecOverrideFlag.Enabled() { cmd.Flags().StringSliceVar(&options.Overrides, "override", options.Overrides, "Directly configure values in the spec") diff --git a/cmd/kops/create_ig.go b/cmd/kops/create_ig.go index 110271fb12..685654cb14 100644 --- a/cmd/kops/create_ig.go +++ b/cmd/kops/create_ig.go @@ -102,7 +102,7 @@ func NewCmdCreateInstanceGroup(f *util.Factory, out io.Writer) *cobra.Command { cmd.Flags().StringSliceVar(&options.Subnets, "subnet", options.Subnets, "Subnet in which to create instance group. One of Availability Zone like eu-west-1a or a comma-separated list of multiple Availability Zones.") // DryRun mode that will print YAML or JSON cmd.Flags().BoolVar(&options.DryRun, "dry-run", options.DryRun, "If true, only print the object that would be sent, without sending it. This flag can be used to create a cluster YAML or JSON manifest.") - cmd.Flags().StringVarP(&options.Output, "output", "o", options.Output, "Ouput format. One of json|yaml") + cmd.Flags().StringVarP(&options.Output, "output", "o", options.Output, "Output format. One of json|yaml") cmd.Flags().BoolVar(&options.Edit, "edit", options.Edit, "If true, an editor will be opened to edit default values.") return cmd diff --git a/cmd/kops/validate_cluster.go b/cmd/kops/validate_cluster.go index a93023b5e9..cdedacb2ba 100644 --- a/cmd/kops/validate_cluster.go +++ b/cmd/kops/validate_cluster.go @@ -74,7 +74,7 @@ func NewCmdValidateCluster(f *util.Factory, out io.Writer) *cobra.Command { }, } - cmd.Flags().StringVarP(&options.output, "output", "o", options.output, "Ouput format. One of json|yaml|table.") + cmd.Flags().StringVarP(&options.output, "output", "o", options.output, "Output format. One of json|yaml|table.") return cmd } From e7354144487951f6d4fbf96d53fe46a8316a2b6c Mon Sep 17 00:00:00 2001 From: sunlintong Date: Tue, 3 Apr 2018 16:46:09 +0800 Subject: [PATCH 2/2] add --- docs/cli/kops_create_cluster.md | 2 +- docs/cli/kops_create_instancegroup.md | 2 +- docs/cli/kops_validate_cluster.md | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/cli/kops_create_cluster.md b/docs/cli/kops_create_cluster.md index c49f504157..1ee2903d7f 100644 --- a/docs/cli/kops_create_cluster.md +++ b/docs/cli/kops_create_cluster.md @@ -95,7 +95,7 @@ kops create cluster --node-tenancy string The tenancy of the node group on AWS. Can be either default or dedicated. --node-volume-size int32 Set instance volume size (in GB) for nodes --out string Path to write any local output - -o, --output string Ouput format. One of json|yaml. Used with the --dry-run flag. + -o, --output string Output format. One of json|yaml. Used with the --dry-run flag. --project string Project to use (must be set on GCE) --ssh-access stringSlice Restrict SSH access to this CIDR. If not set, access will not be restricted by IP. (default [0.0.0.0/0]) --ssh-public-key string SSH public key to use (default "~/.ssh/id_rsa.pub") diff --git a/docs/cli/kops_create_instancegroup.md b/docs/cli/kops_create_instancegroup.md index d901415968..37a7fd3826 100644 --- a/docs/cli/kops_create_instancegroup.md +++ b/docs/cli/kops_create_instancegroup.md @@ -35,7 +35,7 @@ kops create instancegroup ``` --dry-run If true, only print the object that would be sent, without sending it. This flag can be used to create a cluster YAML or JSON manifest. --edit If true, an editor will be opened to edit default values. (default true) - -o, --output string Ouput format. One of json|yaml + -o, --output string Output format. One of json|yaml --role string Type of instance group to create (Node,Master,Bastion) (default "Node") --subnet stringSlice Subnet in which to create instance group. One of Availability Zone like eu-west-1a or a comma-separated list of multiple Availability Zones. ``` diff --git a/docs/cli/kops_validate_cluster.md b/docs/cli/kops_validate_cluster.md index ab2cf5591e..82c03c32c4 100644 --- a/docs/cli/kops_validate_cluster.md +++ b/docs/cli/kops_validate_cluster.md @@ -31,7 +31,7 @@ kops validate cluster ### Options ``` - -o, --output string Ouput format. One of json|yaml|table. (default "table") + -o, --output string Output format. One of json|yaml|table. (default "table") ``` ### Options inherited from parent commands