Fixed sail trans dl flag. Added versioning to the CLI.

This commit is contained in:
colin-mckibben-sp
2022-10-25 10:40:53 -04:00
parent cf8b581d77
commit 53dfd58152
3 changed files with 6 additions and 3 deletions

View File

@@ -1,4 +1,4 @@
VERSION ?= dev
VERSION = 0.0.2
clean:
go clean ./...
@@ -12,6 +12,6 @@ test:
docker run --rm cli go test -v -count=1 ./...
install:
go build -o /usr/local/bin/sail
go build -o /usr/local/bin/sail -ldflags="-X 'github.com/sailpoint-oss/sailpoint-cli/cmd/root.version=$(VERSION)'"
.PHONY: clean mocks test install .docker/login .docker/build .docker/push

View File

@@ -10,10 +10,13 @@ import (
"github.com/spf13/cobra"
)
var version = "0.0.1"
func NewRootCmd(client client.Client) *cobra.Command {
root := &cobra.Command{
Use: "sail",
Short: "sail",
Version: version,
SilenceUsage: true,
CompletionOptions: cobra.CompletionOptions{
DisableDefaultCmd: true,

View File

@@ -52,7 +52,7 @@ func newDownloadCmd(client client.Client) *cobra.Command {
return err
}
destination := cmd.Flags().Lookup("output").Value.String()
destination := cmd.Flags().Lookup("destination").Value.String()
for _, v := range transforms {
filename := v["name"].(string) + ".json"