From bf80eea8a8178b10fc5a17ae3c2a5f6ef2528e8f Mon Sep 17 00:00:00 2001 From: Edward Viaene Date: Wed, 6 Apr 2022 11:11:55 -0400 Subject: [PATCH] Makefile, typos --- .gitignore | 2 +- Makefile | 12 ++++++++++++ cmd/login.go | 2 +- cmd/root.go | 2 +- 4 files changed, 15 insertions(+), 3 deletions(-) create mode 100644 Makefile diff --git a/.gitignore b/.gitignore index f3aa807..156a9fc 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,3 @@ .idea config.yaml -onelogin-auth-cli \ No newline at end of file +/onelogin-auth-* diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..e1a5602 --- /dev/null +++ b/Makefile @@ -0,0 +1,12 @@ +BINARY = onelogin-auth + +all: build + +build: + GOOS=linux GOARCH=amd64 go build ${LDFLAGS} -o ${BINARY}-linux-amd64 main.go + GOOS=linux GOARCH=arm64 go build ${LDFLAGS} -o ${BINARY}-linux-arm64 main.go + GOOS=darwin GOARCH=amd64 go build ${LDFLAGS} -o ${BINARY}-darwin-amd64 main.go + GOOS=darwin GOARCH=arm64 go build ${LDFLAGS} -o ${BINARY}-darwin-arm64 main.go + +clean: + rm -f ${BINARY}-linux-${GOARCH} diff --git a/cmd/login.go b/cmd/login.go index c055927..52400f5 100644 --- a/cmd/login.go +++ b/cmd/login.go @@ -109,7 +109,7 @@ var loginCmd = &cobra.Command{ config.DefaultRegion, profileName, ) - fmt.Printf("Successfully setted credentials for: %s\n", profileName) + fmt.Printf("Successfully set credentials for: %s\n", profileName) }, } diff --git a/cmd/root.go b/cmd/root.go index ae5449e..f477db0 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -30,7 +30,7 @@ var config Config // rootCmd represents the base command when called without any subcommands var rootCmd = &cobra.Command{ Use: "onelogin-auth", - Short: "OneLogin authenticatio CLI Tool", + Short: "OneLogin authentication CLI", } func Execute() {