properly format the changes

This commit is contained in:
Alex Tocar 2024-03-29 09:59:40 +01:00
parent c8e8433719
commit 6406ca90c7
1 changed files with 9 additions and 9 deletions

View File

@ -135,21 +135,21 @@ To determine if an update happened in a script, check for error code 11.`,
Name: "version",
Action: func(c *cli.Context) (err error) {
if c.Bool("short") {
fmt.Println(strings.Split(c.App.Version, " ")[0])
return nil
}
fmt.Println(strings.Split(c.App.Version, " ")[0])
return nil
}
version(c)
return nil
},
Usage: versionText,
Description: versionText,
Flags: []cli.Flag{
&cli.BoolFlag{
Name: "short",
Aliases: []string{"s"},
Usage: "print just the version number",
},
},
&cli.BoolFlag{
Name: "short",
Aliases: []string{"s"},
Usage: "print just the version number",
},
},
},
}
cmds = append(cmds, tunnel.Commands()...)