init: remove --copy; the plain phrase line is enough

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AeFqV96dVeBX94inzcgZKw
This commit is contained in:
2026-11-18 11:08:02 +01:00
co-authored by Claude Sonnet 5.5
parent 5551e7e151
commit dd229895f4
4 changed files with 1 additions and 106 deletions
-8
View File
@@ -21,7 +21,6 @@ import (
func cmdInit(args []string) error {
fs := flag.NewFlagSet("init", flag.ExitOnError)
data := dataFlag(fs)
copyWords := fs.Bool("copy", false, "also copy the 12 words to the clipboard, as one line for pasting")
fs.Parse(args)
if _, err := os.Stat(filepath.Join(*data, "device.key")); err == nil {
@@ -34,13 +33,6 @@ func cmdInit(args []string) error {
}
words := strings.Fields(phrase)
showPhrase(words)
if *copyWords {
var tty *os.File
if term.IsTerminal(int(os.Stdout.Fd())) {
tty = os.Stdout // only a real terminal can act on the OSC 52 fallback
}
copyPhrase(words, tty)
}
// Only ask for confirmation when a person is at the keyboard.
if term.IsTerminal(int(os.Stdin.Fd())) {