From c5b642fc5f7f91905ecf81b7988c0dacbab98cc9 Mon Sep 17 00:00:00 2001 From: Michael Bianco Date: Mon, 10 Jul 2023 11:37:41 -0600 Subject: [PATCH] docs: example of setting multiple vars using stdin --- pkg/cmd/secret/set/set.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkg/cmd/secret/set/set.go b/pkg/cmd/secret/set/set.go index b09295679..86dd35258 100644 --- a/pkg/cmd/secret/set/set.go +++ b/pkg/cmd/secret/set/set.go @@ -93,6 +93,9 @@ func NewCmdSet(f *cmdutil.Factory, runF func(*SetOptions) error) *cobra.Command # Set multiple secrets imported from the ".env" file $ gh secret set -f .env + + # Set multiple secrets from stdin + $ gh secret set -f - < myfile.txt `), Args: cobra.MaximumNArgs(1), RunE: func(cmd *cobra.Command, args []string) error {