Correcting misspelled words (#1349)
* Correcting Misspelled Words * grammar fixes
This commit is contained in:
		@ -49,7 +49,7 @@ func TestGoldenInitCmd(t *testing.T) {
 | 
				
			|||||||
			expectErr: true,
 | 
								expectErr: true,
 | 
				
			||||||
		},
 | 
							},
 | 
				
			||||||
		{
 | 
							{
 | 
				
			||||||
			name:      "returns error when passing an relative path for project",
 | 
								name:      "returns error when passing a relative path for project",
 | 
				
			||||||
			args:      []string{"github.com/spf13/testproject"},
 | 
								args:      []string{"github.com/spf13/testproject"},
 | 
				
			||||||
			pkgName:   "github.com/spf13/testproject",
 | 
								pkgName:   "github.com/spf13/testproject",
 | 
				
			||||||
			expectErr: true,
 | 
								expectErr: true,
 | 
				
			||||||
 | 
				
			|||||||
@ -325,7 +325,7 @@ func (c *Command) getCompletions(args []string) (*Command, []string, ShellCompDi
 | 
				
			|||||||
		if len(finalArgs) == 0 && !foundLocalNonPersistentFlag {
 | 
							if len(finalArgs) == 0 && !foundLocalNonPersistentFlag {
 | 
				
			||||||
			// We only complete sub-commands if:
 | 
								// We only complete sub-commands if:
 | 
				
			||||||
			// - there are no arguments on the command-line and
 | 
								// - there are no arguments on the command-line and
 | 
				
			||||||
			// - there are no local, non-peristent flag on the command-line or TraverseChildren is true
 | 
								// - there are no local, non-persistent flags on the command-line or TraverseChildren is true
 | 
				
			||||||
			for _, subCmd := range finalCmd.Commands() {
 | 
								for _, subCmd := range finalCmd.Commands() {
 | 
				
			||||||
				if subCmd.IsAvailableCommand() || subCmd == finalCmd.helpCommand {
 | 
									if subCmd.IsAvailableCommand() || subCmd == finalCmd.helpCommand {
 | 
				
			||||||
					if strings.HasPrefix(subCmd.Name(), toComplete) {
 | 
										if strings.HasPrefix(subCmd.Name(), toComplete) {
 | 
				
			||||||
 | 
				
			|||||||
@ -152,7 +152,7 @@ Register-ArgumentCompleter -CommandName '%[1]s' -ScriptBlock {
 | 
				
			|||||||
        # filter the result
 | 
					        # filter the result
 | 
				
			||||||
        $_.Name -like "$WordToComplete*"
 | 
					        $_.Name -like "$WordToComplete*"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        # Join the flag back if we have a equal sign flag
 | 
					        # Join the flag back if we have an equal sign flag
 | 
				
			||||||
        if ( $IsEqualFlag ) {
 | 
					        if ( $IsEqualFlag ) {
 | 
				
			||||||
            __%[1]s_debug "Join the equal sign flag back to the completion value"
 | 
					            __%[1]s_debug "Join the equal sign flag back to the completion value"
 | 
				
			||||||
            $_.Name = $Flag + "=" + $_.Name
 | 
					            $_.Name = $Flag + "=" + $_.Name
 | 
				
			||||||
@ -178,7 +178,7 @@ Register-ArgumentCompleter -CommandName '%[1]s' -ScriptBlock {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
    $Values | ForEach-Object {
 | 
					    $Values | ForEach-Object {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        # store temporay because switch will overwrite $_
 | 
					        # store temporary because switch will overwrite $_
 | 
				
			||||||
        $comp = $_
 | 
					        $comp = $_
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        # PowerShell supports three different completion modes
 | 
					        # PowerShell supports three different completion modes
 | 
				
			||||||
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user