Skip to content
Myr

Correcting misspelled words (#1349)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

* Correcting Misspelled Words * grammar fixes

authored by tamo · committed by GitHub · parent c2e21bd · Browse files · 3 files+4 added−4 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

3 files+4 added−4 removed

  • other:+4 added−4 removed

3 files+4 added−4 removed

modified:cobra/cmd/init_test.go+1 added-1 removed
47 unmodified lines
48 pkgName: "github.com/spf13/testproject",49 expectErr: true,50 },51 {52 name: "returns error when passing an relative path for project",52 name: "returns error when passing a relative path for project",53 args: []string{"github.com/spf13/testproject"},54 pkgName: "github.com/spf13/testproject",55 expectErr: true,56 },
38 unmodified lines
modified:completions.go+1 added-1 removed
323 unmodified lines
324 // Complete subcommand names, including the help command325 if len(finalArgs) == 0 && !foundLocalNonPersistentFlag {326 // We only complete sub-commands if:327 // - there are no arguments on the command-line and328 // - there are no local, non-peristent flag on the command-line or TraverseChildren is true328 // - there are no local, non-persistent flags on the command-line or TraverseChildren is true329 for _, subCmd := range finalCmd.Commands() {330 if subCmd.IsAvailableCommand() || subCmd == finalCmd.helpCommand {331 if strings.HasPrefix(subCmd.Name(), toComplete) {332 completions = append(completions, fmt.Sprintf("%s\t%s", subCmd.Name(), subCmd.Short))
409 unmodified lines
modified:powershell_completions.go+2 added-2 removed
150 unmodified lines
151 $Values = $Values | Where-Object {152 # filter the result153 $_.Name -like "$WordToComplete*"154155 # Join the flag back if we have a equal sign flag155 # Join the flag back if we have an equal sign flag156 if ( $IsEqualFlag ) {157 __%[1]s_debug "Join the equal sign flag back to the completion value"158 $_.Name = $Flag + "=" + $_.Name159 }
17 unmodified lines
177 __%[1]s_debug "Mode: $Mode"178179 $Values | ForEach-Object {180181 # store temporay because switch will overwrite $_181 # store temporary because switch will overwrite $_182 $comp = $_183184 # PowerShell supports three different completion modes185 # - TabCompleteNext (default windows style - on each key press the next option is displayed)
100 unmodified lines