Skip to content

Commit

Permalink
feat: add version to main
Browse files Browse the repository at this point in the history
  • Loading branch information
joshmedeski committed Jan 19, 2024
1 parent f503ce7 commit 9a621c5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
7 changes: 5 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
package main

import (
"github.com/joshmedeski/sesh/seshcli"
"log"
"os"

"github.com/joshmedeski/sesh/seshcli"
)

var version = "dev"

func main() {
app := seshcli.App()
app := seshcli.App(version)
if err := app.Run(os.Args); err != nil {
log.Fatal(err)
}
Expand Down
4 changes: 1 addition & 3 deletions seshcli/seshcli.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,7 @@ import (
"github.com/urfave/cli/v2"
)

var version = "dev"

func App() cli.App {
func App(version string) cli.App {
return cli.App{
Name: "sesh",
Version: version,
Expand Down

0 comments on commit 9a621c5

Please sign in to comment.