-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix version bug, add author information
- Loading branch information
1 parent
80b8dc5
commit 6a5faf6
Showing
1 changed file
with
12 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,7 @@ package main | |
import ( | ||
"log" | ||
"os" | ||
"time" | ||
|
||
"github.com/urfave/cli/v2" | ||
|
||
|
@@ -12,7 +13,7 @@ import ( | |
"github.com/PatrikOlin/butler-burton/util" | ||
) | ||
|
||
var version string | ||
var Version string | ||
|
||
func init() { | ||
db.InitDB() | ||
|
@@ -29,9 +30,16 @@ func main() { | |
} | ||
|
||
app := &cli.App{ | ||
Name: "Butler Burton", | ||
Usage: "Your personal butler", | ||
Version: version, | ||
Name: "Butler Burton", | ||
Usage: "Your personal butler", | ||
Version: Version, | ||
Compiled: time.Now(), | ||
Authors: []*cli.Author{ | ||
&cli.Author{ | ||
Name: "Patrik Olin", | ||
Email: "[email protected]", | ||
}, | ||
}, | ||
Flags: []cli.Flag{ | ||
&cli.BoolFlag{ | ||
Name: "verbose", | ||
|