27
main.go
27
main.go
@@ -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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user