Restore comment about a "showkey" subcommand

This commit is contained in:
kaiyou 2020-05-07 09:52:53 +02:00 committed by Leo Antunes
parent 00c9d5ec76
commit beae4f2044
1 changed files with 1 additions and 0 deletions

View File

@ -166,6 +166,7 @@ func computeClusterKey(state *ClusterState, clusterKey []byte) ([]byte, error) {
if err != nil {
return nil, err
}
// TODO: refactor this into subcommand ("showkey"?)
if isatty.IsTerminal(os.Stdout.Fd()) {
fmt.Printf("new cluster key generated: %s\n", base64.StdEncoding.EncodeToString(clusterKey))
}