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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user