Skip to content

Commit

Permalink
change placeholder/help copy
Browse files Browse the repository at this point in the history
  • Loading branch information
zeucapua committed Sep 10, 2024
1 parent be30445 commit bfdd669
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions cmd/generate/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,15 @@ type Options struct {
ttyDisabled bool
}

const configLongDesc string = `Generates a ~/.sauced.yaml configuration file. The attribution of emails to given entities
const configLongDesc string = `Generates a ".sauced.yaml" configuration file. The attribution of emails to given entities
is based on the repository this command is ran in.`

func NewConfigCommand() *cobra.Command {
opts := &Options{}

cmd := &cobra.Command{
Use: "config path/to/repo [flags]",
Short: "Generates a \"~/.sauced.yaml\" config based on the current repository",
Short: "Generates a \".sauced.yaml\" config based on the current repository",
Long: configLongDesc,
Args: func(_ *cobra.Command, args []string) error {
if len(args) != 1 {
Expand Down
6 changes: 3 additions & 3 deletions cmd/generate/config/spec.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ type keymap struct{}

func (k keymap) ShortHelp() []key.Binding {
return []key.Binding{
key.NewBinding(key.WithKeys("ctrl+n"), key.WithHelp("ctrl+n", "next")),
key.NewBinding(key.WithKeys("ctrl+p"), key.WithHelp("ctrl+p", "prev")),
key.NewBinding(key.WithKeys("ctrl+n"), key.WithHelp("ctrl+n", "next suggestion")),
key.NewBinding(key.WithKeys("ctrl+p"), key.WithHelp("ctrl+p", "prev suggestion")),
key.NewBinding(key.WithKeys("ctrl+i"), key.WithHelp("ctrl+i", "ignore email")),
key.NewBinding(key.WithKeys("esc"), key.WithHelp("esc", "quit")),
key.NewBinding(key.WithKeys("enter"), key.WithHelp("enter", "submit")),
Expand All @@ -43,7 +43,7 @@ func (k keymap) FullHelp() [][]key.Binding {

func initialModel(opts *Options, uniqueEmails []string) model {
ti := textinput.New()
ti.Placeholder = "name"
ti.Placeholder = "username"
ti.Focus()
ti.ShowSuggestions = true

Expand Down

0 comments on commit bfdd669

Please sign in to comment.