From 0cd822566776eddf8e47e61b7279aff4fa5481d7 Mon Sep 17 00:00:00 2001 From: Rose Hogenson Date: Fri, 24 Oct 2025 16:37:31 -0700 Subject: Get rid of defaultOptions --- sym.go | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'sym.go') diff --git a/sym.go b/sym.go index 2405feb..e9eef94 100644 --- a/sym.go +++ b/sym.go @@ -15,9 +15,18 @@ type subcommand interface { func whichSubcommand(name string) (subcommand, bool) { switch filepath.Base(name) { case "enc": - return &defaultEncryptOptions, true + return &encryptOptions{ + passwordIn: termReadPassword, + passwordOut: os.Stderr, + stdin: os.Stdin, + stdout: os.Stdout, + }, true case "dec": - return &defaultDecryptOptions, true + return &decryptOptions{ + passwordIn: termReadPassword, + stdin: os.Stdin, + stdout: os.Stdout, + }, true default: return nil, false } -- cgit v1.3.1