move packages slice to global scope
This commit is contained in:
parent
adfe6a09c1
commit
5070d00811
@ -12,7 +12,7 @@ import (
|
||||
"strings"
|
||||
)
|
||||
|
||||
var packages []string
|
||||
var packages = []string{"cli", "altsrc"}
|
||||
|
||||
func main() {
|
||||
app := cli.NewApp()
|
||||
@ -43,8 +43,6 @@ func main() {
|
||||
},
|
||||
}
|
||||
|
||||
packages = []string{"cli", "altsrc"}
|
||||
|
||||
err := app.Run(os.Args)
|
||||
if err != nil {
|
||||
log.Fatal(err)
|
||||
|
Loading…
Reference in New Issue
Block a user