chore: add 'ctx conn' alias for 'ctx connection' command

This commit is contained in:
Pasha Sviderski
2025-12-19 20:53:30 +10:00
parent 777615bc56
commit 85a2615db1
+3 -2
View File
@@ -11,8 +11,9 @@ import (
func NewConnectionCommand() *cobra.Command { func NewConnectionCommand() *cobra.Command {
cmd := &cobra.Command{ cmd := &cobra.Command{
Use: "connection", Use: "connection",
Short: "Choose a new default connection for the current context.", Aliases: []string{"conn"},
Short: "Choose a new default connection for the current context.",
RunE: func(cmd *cobra.Command, args []string) error { RunE: func(cmd *cobra.Command, args []string) error {
uncli := cmd.Context().Value("cli").(*cli.CLI) uncli := cmd.Context().Value("cli").(*cli.CLI)
return selectConnection(uncli) return selectConnection(uncli)