diff options
| author | Rose Hogenson <rosehogenson@posteo.net> | 2025-10-24 16:37:31 -0700 |
|---|---|---|
| committer | Rose Hogenson <rosehogenson@posteo.net> | 2025-10-24 16:37:31 -0700 |
| commit | 0cd822566776eddf8e47e61b7279aff4fa5481d7 (patch) | |
| tree | cced0871ee0af562324933795032af1f9eefb4da /sym.go | |
| parent | 466cbd5a1be7d274a45506add79c21e06ee53381 (diff) | |
| download | sym-0cd822566776eddf8e47e61b7279aff4fa5481d7.tar.zst | |
Get rid of defaultOptions
Diffstat (limited to 'sym.go')
| -rw-r--r-- | sym.go | 13 |
1 files changed, 11 insertions, 2 deletions
@@ -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 } |
