27
main.go
27
main.go
@@ -105,10 +105,17 @@ func main() {
|
||||
var directory string
|
||||
|
||||
app := &cli.App{
|
||||
Name: "snice",
|
||||
Usage: "Serve Static Files",
|
||||
Version: "v0.2.0",
|
||||
DefaultCommand: "",
|
||||
Name: "snice",
|
||||
Usage: "Serve Static Files",
|
||||
Version: "v0.2.0",
|
||||
EnableBashCompletion: true,
|
||||
Compiled: time.Time{},
|
||||
Authors: []*cli.Author{
|
||||
{Name: "Hadley Rich", Email: "hads@nice.net.nz"},
|
||||
},
|
||||
SliceFlagSeparator: "",
|
||||
UseShortOptionHandling: true,
|
||||
Suggest: true,
|
||||
Commands: []*cli.Command{
|
||||
{
|
||||
Name: "serve",
|
||||
@@ -192,18 +199,6 @@ func main() {
|
||||
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 {
|
||||
|
||||
Reference in New Issue
Block a user