Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
RyosukeCla committed Apr 13, 2023
1 parent e75f779 commit 29db589
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ AN_ENV_FROM_SECRET_MANAGER=<VALUE_FROM_SECRET_MANAGEr>
Usage: gcpsecretmanager2env [OPTIONS] <input-file>
Note: <input-file> is a required positional argument.
-credential string
gcp credential file (default "~/.config/gcloud/application_default_credentials.json")
gcp credential file. it will see GOOGLE_APPLICATION_CREDENTIALS when it's not set
-help
show help
-output string
Expand Down
4 changes: 2 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ func main() {
ctx := context.Background()
client, err := secretmanager.NewClient(ctx, option.WithCredentialsFile(flags.credential))
if err != nil {
log.Fatalf("failed to setup client: %v", err)
log.Fatalf("failed to setup client (-credential may be required): %v", err)
}
defer client.Close()

Expand Down Expand Up @@ -80,7 +80,7 @@ type flags struct {

func parseFlags() flags {
defaultCredential := os.Getenv("GOOGLE_APPLICATION_CREDENTIALS")
output := flag.String("output", "", "output file (default: stdout)")
output := flag.String("output", "", "output file")
help := flag.Bool("help", false, "show help")
credential := flag.String("credential", defaultCredential, "gcp credential file")

Expand Down

0 comments on commit 29db589

Please sign in to comment.