Skip to content

Commit

Permalink
cli: add piko version
Browse files Browse the repository at this point in the history
Adds a -v/--version flag to Piko to display the version.
  • Loading branch information
andydunstall committed Jul 11, 2024
1 parent 0393df1 commit b045a40
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cli/command.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import (
"github.com/andydunstall/piko/cli/server"
"github.com/andydunstall/piko/cli/workload"
workloadv2 "github.com/andydunstall/piko/cli/workloadv2"
"github.com/andydunstall/piko/pkg/build"
)

func NewCommand() *cobra.Command {
Expand Down Expand Up @@ -57,6 +58,7 @@ to an upstream listener via Piko. Such as to forward port 3000 to endpoint
$ piko forward tcp 3000 my-endpoint
`,
Version: build.Version,
}

cmd.AddCommand(server.NewCommand())
Expand Down

0 comments on commit b045a40

Please sign in to comment.