Skip to content

Commit

Permalink
fix: wording
Browse files Browse the repository at this point in the history
  • Loading branch information
KashifSaadat committed Jan 17, 2025
1 parent 22cc0d7 commit ca57ae1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion pkg/cmd/tnctl/create/assets/tnctl.revision.yaml.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
10 changes: 5 additions & 5 deletions pkg/cmd/tnctl/create/revision.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down Expand Up @@ -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 {
Expand All @@ -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
Expand All @@ -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)
Expand Down Expand Up @@ -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..."),
Expand Down

0 comments on commit ca57ae1

Please sign in to comment.