Skip to content
This repository was archived by the owner on Feb 16, 2023. It is now read-only.

Commit 9922a49

Browse files
Merge pull request #230 from secrethub/feature/rename-service-init--file
Rename service init --file to --out-file
2 parents 3514b62 + 1c46f56 commit 9922a49

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

internals/secrethub/service_init.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,8 @@ func (cmd *ServiceInitCommand) Register(r command.Registerer) {
118118
clause.Flag("permission", "Create an access rule giving the service account permission on a directory. Accepted permissions are `read`, `write` and `admin`. Use `--permission <permission>` to give permission on the root of the repo and `--permission <dir>[/<dir> ...]:<permission>` to give permission on a subdirectory.").StringVar(&cmd.permission)
119119
// TODO make 45 sec configurable
120120
clause.Flag("clip", "Write the service account configuration to the clipboard instead of stdout. The clipboard is automatically cleared after 45 seconds.").Short('c').BoolVar(&cmd.clip)
121-
clause.Flag("file", "Write the service account configuration to a file instead of stdout.").StringVar(&cmd.file)
121+
clause.Flag("file", "Write the service account configuration to a file instead of stdout.").Hidden().StringVar(&cmd.file)
122+
clause.Flag("out-file", "Write the service account configuration to a file instead of stdout.").StringVar(&cmd.file)
122123
clause.Flag("file-mode", "Set filemode for the written file. Defaults to 0440 (read only) and is ignored without the --file flag.").Default("0440").SetValue(&cmd.fileMode)
123124

124125
command.BindAction(clause, cmd.Run)

0 commit comments

Comments
 (0)