Update function alignment

Signed-off-by: Sascha Grunert <sgrunert@suse.com>
main
Sascha Grunert 5 years ago
parent 0c01922a12
commit 687f721eaa
No known key found for this signature in database
GPG Key ID: 8CE029DD1A866E52

@ -64,11 +64,7 @@ func (a *App) writeFishCompletionTemplate(w io.Writer) error {
}) })
} }
func (a *App) prepareFishCommands( func (a *App) prepareFishCommands(commands []Command, allCommands *[]string, previousCommands []string) []string {
commands []Command,
allCommands *[]string,
previousCommands []string,
) []string {
completions := []string{} completions := []string{}
for i := range commands { for i := range commands {
command := &commands[i] command := &commands[i]
@ -113,10 +109,7 @@ func (a *App) prepareFishCommands(
return completions return completions
} }
func (a *App) prepareFishFlags( func (a *App) prepareFishFlags(flags []Flag, previousCommands []string) []string {
flags []Flag,
previousCommands []string,
) []string {
completions := []string{} completions := []string{}
for _, f := range flags { for _, f := range flags {
flag, ok := f.(DocGenerationFlag) flag, ok := f.(DocGenerationFlag)
@ -160,10 +153,7 @@ func (a *App) prepareFishFlags(
return completions return completions
} }
func fishAddFileFlag( func fishAddFileFlag(flag Flag, completion *strings.Builder) {
flag Flag,
completion *strings.Builder,
) {
switch f := flag.(type) { switch f := flag.(type) {
case GenericFlag: case GenericFlag:
if f.TakesFile { if f.TakesFile {

Loading…
Cancel
Save