Skip to content

Commit 485b2ae

Browse files
committed
chore: default convert to yaml
1 parent 533da67 commit 485b2ae

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

main.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,11 @@ func Run(args Cmd.Args, deps Dependencies) error {
3131
args.Src = filepath.Join(homeDir, ".ssh")
3232
}
3333

34+
// default to YAML
35+
if !(args.ToYAML && args.ToJSON && args.ToSSH) {
36+
args.ToYAML = true
37+
}
38+
3439
isValid, notValidReason := Cmd.CheckConvertArgvValid(args)
3540
if !isValid {
3641
deps.Println(notValidReason)

0 commit comments

Comments
 (0)