Order
All checks were successful
Go / build (push) Successful in 1m22s

This commit is contained in:
2023-10-29 13:59:04 +13:00
parent d703edb282
commit 68d7d1b481

27
main.go
View File

@@ -105,10 +105,17 @@ func main() {
var directory string var directory string
app := &cli.App{ app := &cli.App{
Name: "snice", Name: "snice",
Usage: "Serve Static Files", Usage: "Serve Static Files",
Version: "v0.2.0", Version: "v0.2.0",
DefaultCommand: "", EnableBashCompletion: true,
Compiled: time.Time{},
Authors: []*cli.Author{
{Name: "Hadley Rich", Email: "hads@nice.net.nz"},
},
SliceFlagSeparator: "",
UseShortOptionHandling: true,
Suggest: true,
Commands: []*cli.Command{ Commands: []*cli.Command{
{ {
Name: "serve", Name: "serve",
@@ -192,18 +199,6 @@ func main() {
Destination: &port, Destination: &port,
}, },
}, },
EnableBashCompletion: true,
Compiled: time.Time{},
Authors: []*cli.Author{},
Reader: nil,
Writer: nil,
ErrWriter: nil,
SliceFlagSeparator: "",
DisableSliceFlagSeparator: false,
UseShortOptionHandling: true,
Suggest: true,
AllowExtFlags: false,
SkipFlagParsing: false,
} }
if err := app.Run(os.Args); err != nil { if err := app.Run(os.Args); err != nil {