init: also print the recovery phrase as one plain line
The numbered table pastes badly; a single line can be selected with a triple click and pasted into a password manager or 'allmende recover'. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01AeFqV96dVeBX94inzcgZKw
This commit is contained in:
@@ -25,7 +25,8 @@ This prints your 12-word recovery phrase **once**. Write it down: it is the only
|
||||
way to get your identity and listings back if the machine is lost
|
||||
(`allmende recover`). Keys and the database live in the data directory,
|
||||
`~/.local/share/allmende` by default (change it with `--data <dir>` or the
|
||||
`ALLMENDE_DATA` environment variable). `bin/allmende init --copy` also copies the
|
||||
`ALLMENDE_DATA` environment variable). Besides the numbered list, `init` prints the
|
||||
words as one plain line you can triple-click and paste. `bin/allmende init --copy` also copies the
|
||||
words to the clipboard as one line (via `wl-copy`, `xclip`, `xsel` or `pbcopy`,
|
||||
or your terminal over SSH): paste them into a password manager, then clear the
|
||||
clipboard.
|
||||
|
||||
@@ -87,7 +87,9 @@ or share them.
|
||||
fmt.Printf(" %2d. %-12s %2d. %-12s %2d. %-12s\n",
|
||||
i+1, words[i], i+2, words[i+1], i+3, words[i+2])
|
||||
}
|
||||
fmt.Println()
|
||||
// The table pastes badly (numbers, columns). One plain line can be selected
|
||||
// with a triple click and pasted into a password manager or 'allmende recover'.
|
||||
fmt.Printf("\nTo copy: select the line below (triple-click) and paste it where you keep it.\n\n%s\n\n", strings.Join(words, " "))
|
||||
}
|
||||
|
||||
// confirmPhrase asks for two random words so the user has really written
|
||||
|
||||
Reference in New Issue
Block a user