1
0
mirror of https://github.com/getsops/sops.git synced 2026-02-05 12:45:21 +01:00

Support --input-type for exec-file (#699)

* Update main.go

* Update main.go

* Update cmd/sops/main.go

Co-authored-by: Adrian Utrilla <adrianutrilla@gmail.com>

Co-authored-by: Adrian Utrilla <adrianutrilla@gmail.com>
This commit is contained in:
lbonanomi
2020-07-28 13:02:02 -04:00
committed by GitHub
parent 5d32d9a3ee
commit f78682c6c0

View File

@@ -184,6 +184,14 @@ func main() {
Name: "user",
Usage: "the user to run the command as",
},
cli.StringFlag{
Name: "input-type",
Usage: "currently json, yaml, dotenv and binary are supported. If not set, sops will use the file's extension to determine the type",
},
cli.StringFlag{
Name: "output-type",
Usage: "currently json, yaml, dotenv and binary are supported. If not set, sops will use the input file's extension to determine the output format",
},
}, keyserviceFlags...),
Action: func(c *cli.Context) error {
if len(c.Args()) != 2 {