mirror of
https://github.com/psviderski/uncloud.git
synced 2026-08-26 19:13:34 +00:00
chore: add 'ctx conn' alias for 'ctx connection' command
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user