Skip to content

Commit

Permalink
Update function alignment
Browse files Browse the repository at this point in the history
Signed-off-by: Sascha Grunert <sgrunert@suse.com>
  • Loading branch information
saschagrunert committed Aug 26, 2019
1 parent 0c01922 commit 687f721
Showing 1 changed file with 3 additions and 13 deletions.
16 changes: 3 additions & 13 deletions fish.go
Expand Up @@ -64,11 +64,7 @@ func (a *App) writeFishCompletionTemplate(w io.Writer) error {
})
}

func (a *App) prepareFishCommands(
commands []Command,
allCommands *[]string,
previousCommands []string,
) []string {
func (a *App) prepareFishCommands(commands []Command, allCommands *[]string, previousCommands []string) []string {
completions := []string{}
for i := range commands {
command := &commands[i]
Expand Down Expand Up @@ -113,10 +109,7 @@ func (a *App) prepareFishCommands(
return completions
}

func (a *App) prepareFishFlags(
flags []Flag,
previousCommands []string,
) []string {
func (a *App) prepareFishFlags(flags []Flag, previousCommands []string) []string {
completions := []string{}
for _, f := range flags {
flag, ok := f.(DocGenerationFlag)
Expand Down Expand Up @@ -160,10 +153,7 @@ func (a *App) prepareFishFlags(
return completions
}

func fishAddFileFlag(
flag Flag,
completion *strings.Builder,
) {
func fishAddFileFlag(flag Flag, completion *strings.Builder) {
switch f := flag.(type) {
case GenericFlag:
if f.TakesFile {
Expand Down

0 comments on commit 687f721

Please sign in to comment.