From 4864ece107613118407b1b5eae811ef90c2706e1 Mon Sep 17 00:00:00 2001 From: Strajk Date: Tue, 21 Jul 2020 10:10:23 +0200 Subject: [PATCH] Document `secret-file` in README and add example --- README.md | 1 + cmd/root.go | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 0c06c3e3..7aba8fb5 100644 --- a/README.md +++ b/README.md @@ -84,6 +84,7 @@ act -v -q, --quiet disable logging of output from steps -r, --reuse reuse action containers to maintain state -s, --secret stringArray secret to make available to actions with optional value (e.g. -s mysecret=foo or -s mysecret) + --secret-file file with list of secrets to read from (e.g. --secret-file .secrets) -v, --verbose verbose output --version version for act -w, --watch watch the contents of the local repo and run when files change diff --git a/cmd/root.go b/cmd/root.go index 8b9bfe49..7b5a9ef6 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -47,7 +47,7 @@ func Execute(ctx context.Context, version string) { rootCmd.PersistentFlags().BoolP("verbose", "v", false, "verbose output") rootCmd.PersistentFlags().BoolVarP(&input.noOutput, "quiet", "q", false, "disable logging of output from steps") rootCmd.PersistentFlags().BoolVarP(&input.dryrun, "dryrun", "n", false, "dryrun mode") - rootCmd.PersistentFlags().StringVarP(&input.secretfile, "secret-file", "", "", "file with list of secrets to read from") + rootCmd.PersistentFlags().StringVarP(&input.secretfile, "secret-file", "", "", "file with list of secrets to read from (e.g. --secret-file .secrets)") rootCmd.PersistentFlags().StringVarP(&input.envfile, "env-file", "", ".env", "environment file to read and use as env in the containers") rootCmd.SetArgs(args())