Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

improve rendering of mkpasswd ui in some setups #64

Merged
merged 1 commit into from
Feb 12, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion nats/server_mkpasswd_command.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ func (c *SrvPasswdCmd) askPassword() (string, error) {
if err != nil {
return "", fmt.Errorf("could not read password: %w", err)
}

fmt.Println()
err = survey.AskOne(&survey.Password{Message: "Reenter password", Help: "Enter the same password again"}, &bp2)
if err != nil {
return "", fmt.Errorf("could not read password: %w", err)
Expand Down
2 changes: 1 addition & 1 deletion nats/stream_command.go
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ func configureStreamCommand(app *kingpin.Application) {
strReport.Flag("storage", "Sort by Storage type").Short('t').BoolVar(&c.reportSortStorage)
strReport.Flag("raw", "Show un-formatted numbers").Short('r').BoolVar(&c.reportRaw)

strBackup := str.Command("backup", "Backs up a Stream over the NATS network").Action(c.backupAction)
strBackup := str.Command("backup", "Creates a backup of a Stream over the NATS network").Alias("snapshot").Action(c.backupAction)
strBackup.Arg("stream", "Stream to backup").Required().StringVar(&c.stream)
strBackup.Arg("target", "Directory to create the backup in").Required().StringVar(&c.backupDirectory)
strBackup.Flag("progress", "Enables or disables progress reporting using a progress bar").Default("true").BoolVar(&c.showProgress)
Expand Down