File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -70,9 +70,9 @@ Add this to the end of your shell configuration file (e.g. <info>"{{ call .RcFil
70
70
CompletionFile func () string
71
71
}{
72
72
Command : command ,
73
- Shell : guessShell ,
73
+ Shell : GuessShell ,
74
74
RcFile : func () string {
75
- switch guessShell () {
75
+ switch GuessShell () {
76
76
case "fish" :
77
77
return "~/.config/fish/config.fish"
78
78
case "zsh" :
@@ -82,7 +82,7 @@ Add this to the end of your shell configuration file (e.g. <info>"{{ call .RcFil
82
82
}
83
83
},
84
84
CompletionFile : func () string {
85
- switch guessShell () {
85
+ switch GuessShell () {
86
86
case "fish" :
87
87
return fmt .Sprintf ("/etc/fish/completions/%s.fish" , application .HelpName )
88
88
case "zsh" :
@@ -107,7 +107,7 @@ Add this to the end of your shell configuration file (e.g. <info>"{{ call .RcFil
107
107
Action : func (c * Context ) error {
108
108
shell := c .Args ().Get ("shell" )
109
109
if shell == "" {
110
- shell = guessShell ()
110
+ shell = GuessShell ()
111
111
}
112
112
113
113
templates , err := template .ParseFS (CompletionTemplates , "resources/*" )
@@ -136,6 +136,6 @@ Add this to the end of your shell configuration file (e.g. <info>"{{ call .RcFil
136
136
},
137
137
}
138
138
139
- func guessShell () string {
139
+ func GuessShell () string {
140
140
return path .Base (os .Getenv ("SHELL" ))
141
141
}
You can’t perform that action at this time.
0 commit comments