Skip to content

Commit

Permalink
Merge pull request #64 from ripienaar/mkpasswd_ux
Browse files Browse the repository at this point in the history
improve rendering of mkpasswd ui in some setups
  • Loading branch information
ripienaar committed Feb 12, 2021
2 parents 6494fda + 0c68037 commit db8444e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
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

0 comments on commit db8444e

Please sign in to comment.