Skip to content
This repository was archived by the owner on May 30, 2024. It is now read-only.

Commit 2b05288

Browse files
author
Noah Lee
authored
Add version flag to CLI (#326)
1 parent 5b0c146 commit 2b05288

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

cmd/cli/main.go

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,13 @@ import (
77
"github.com/urfave/cli/v2"
88
)
99

10+
var Version = "latest"
11+
1012
func main() {
1113
app := &cli.App{
12-
Name: "gitploy",
13-
Usage: "Command line utility.",
14+
Name: "gitploy",
15+
Usage: "Command line utility.",
16+
Version: Version,
1417
Flags: []cli.Flag{
1518
&cli.StringFlag{
1619
Name: "host",

0 commit comments

Comments
 (0)