Skip to content

Commit

Permalink
remove Navigation prefix and move login under auth (#117)
Browse files Browse the repository at this point in the history
* remove `Navigation` prefix and move login under auth

* pluralize deploy in command palette
  • Loading branch information
kitemongerer authored Nov 13, 2024
1 parent 8733bcb commit d9a2291
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions cmd/login.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ var loginCmd = &cobra.Command{
RunE: func(cmd *cobra.Command, args []string) error {
return runLogin(cmd.Context())
},
GroupID: GroupAuth.ID,
}

func runLogin(ctx context.Context) error {
Expand Down
4 changes: 2 additions & 2 deletions cmd/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ func selectResource(ctx context.Context) func(resource.Resource) []views.Palette
},
{
command: views.PaletteCommand{
Name: "deploy create",
Name: "deploys create",
Description: "Deploy the service",
Action: func(ctx context.Context, args []string) tea.Cmd {
return InteractiveDeployCreate(ctx, types.DeployInput{ServiceID: r.ID()}, "Create Deploy")
Expand All @@ -105,7 +105,7 @@ func selectResource(ctx context.Context) func(resource.Resource) []views.Palette
},
{
command: views.PaletteCommand{
Name: "deploy list",
Name: "deploys list",
Description: "List deploys for the service",
Action: func(ctx context.Context, args []string) tea.Cmd {
return InteractiveDeployList(ctx, views.DeployListInput{ServiceID: r.ID()}, "Deploys")
Expand Down
2 changes: 1 addition & 1 deletion pkg/tui/filters.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ func NewFilterModel(form *huh.Form, search func(*huh.Form) tea.Cmd) *FilterModel
AcceptSuggestion: key.NewBinding(key.WithKeys("ctrl+e"), key.WithHelp("ctrl+e", "complete")),
Prev: key.NewBinding(key.WithKeys("shift+tab"), key.WithHelp("shift+tab", "back")),
Next: key.NewBinding(key.WithKeys("tab"), key.WithHelp("tab", "next")),
Submit: key.NewBinding(key.WithKeys("enter"), key.WithHelp("enter", "submit")),
Submit: key.NewBinding(key.WithKeys("enter"), key.WithHelp("enter", "to submit")),
},
}),
search: search,
Expand Down
2 changes: 1 addition & 1 deletion pkg/tui/stack.go
Original file line number Diff line number Diff line change
Expand Up @@ -208,5 +208,5 @@ func (m *StackModel) footer() string {
commands = append(commands, saveToClipboard)
}

return renderstyle.CommandTitle.Render("Navigation: ") + strings.Join(commands, " ")
return strings.Join(commands, " ")
}

0 comments on commit d9a2291

Please sign in to comment.