From ca57ae1e2af992e73813e0dffa097dbc82f565b6 Mon Sep 17 00:00:00 2001 From: Kashif Saadat Date: Fri, 17 Jan 2025 14:46:44 +0000 Subject: [PATCH] fix: wording --- pkg/cmd/tnctl/create/assets/tnctl.revision.yaml.tpl | 2 +- pkg/cmd/tnctl/create/revision.go | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/pkg/cmd/tnctl/create/assets/tnctl.revision.yaml.tpl b/pkg/cmd/tnctl/create/assets/tnctl.revision.yaml.tpl index af81a0f44..dfa63c630 100644 --- a/pkg/cmd/tnctl/create/assets/tnctl.revision.yaml.tpl +++ b/pkg/cmd/tnctl/create/assets/tnctl.revision.yaml.tpl @@ -36,7 +36,7 @@ spec: {{- if .Inputs }} ## Inputs dictate the variables which the consumer is permitted, or - ## required to provides. It is best to keep this to a minimum; so a developer + ## required to provide. It is best to keep this to a minimum; so a developer ## needn't be concerned with the inner workings of the module, just the ## contextual requirements, i.e database name, size etc. inputs: diff --git a/pkg/cmd/tnctl/create/revision.go b/pkg/cmd/tnctl/create/revision.go index be4b49ecc..95a5d869f 100644 --- a/pkg/cmd/tnctl/create/revision.go +++ b/pkg/cmd/tnctl/create/revision.go @@ -73,7 +73,7 @@ type RevisionCommand struct { File string // Provider is the name of the provider to use Provider string - // DeleteDownload indicates we should retain the download + // DeleteDownload indicates we should retain the download DeleteDownload bool } @@ -245,7 +245,7 @@ func (o *RevisionCommand) retrieveOutputs(module *tfconfig.Module) error { // @step: ask the user which outputs should exposed var selected []string if err := survey.AskOne(&survey.MultiSelect{ - Message: "What outputs should be extract into the secret?", + Message: "What outputs should be extracted into the secret?", Options: suggestions, PageSize: 20, }, &selected, survey.WithKeepFilter(false)); err != nil { @@ -272,7 +272,7 @@ func (o *RevisionCommand) retrieveRevision() error { if !found { if err := survey.AskOne(&survey.Input{ Message: fmt.Sprintf("What is the version of this %s (in semver format)?", color.YellowString("revision")), - Help: "Revisions must have a version, cloud resource reference both the plan and the version", + Help: "Revisions must have a version, cloud resources reference both the plan name and the version", Default: "v0.0.1", }, &o.Revision); err != nil { return err @@ -299,7 +299,7 @@ func (o *RevisionCommand) retrieveInputs(module *tfconfig.Module) error { return nil } - // @step: calculate the max variable size - just of spacing + // @step: calculate the max variable size - just for spacing for _, x := range module.Variables { if len(x.Name) > length { length = len(x.Name) @@ -430,7 +430,7 @@ func (o *RevisionCommand) retrievePlan() error { // @step: we an produce a list from the current plans if err := survey.AskOne(&survey.Select{ - Message: fmt.Sprintf("The cluster already contains plans, will the %s will be part of?", + Message: fmt.Sprintf("The cluster already contains plans, which will the %s will be part of?", color.YellowString("revision"), ), Options: append(list, "None of these..."),