change "complete" to "shellComplete"

This commit is contained in:
Joshua Rubin
2016-11-14 09:35:22 -07:00
parent ea3df26e64
commit 8dd1962f7b
3 changed files with 7 additions and 7 deletions

View File

@@ -252,7 +252,7 @@ func checkSubcommandHelp(c *Context) bool {
return false
}
func checkCompleteFlag(a *App, arguments []string) (bool, []string) {
func checkShellCompleteFlag(a *App, arguments []string) (bool, []string) {
if !a.EnableBashCompletion {
return false, arguments
}
@@ -268,7 +268,7 @@ func checkCompleteFlag(a *App, arguments []string) (bool, []string) {
}
func checkCompletions(c *Context) bool {
if !c.complete {
if !c.shellComplete {
return false
}
@@ -285,7 +285,7 @@ func checkCompletions(c *Context) bool {
}
func checkCommandCompletions(c *Context, name string) bool {
if !c.complete {
if !c.shellComplete {
return false
}