mirror of
https://github.com/rsteube/carapace-bin.git
synced 2025-05-22 23:51:16 +00:00
22 lines
516 B
Go
22 lines
516 B
Go
package cmd
|
|
|
|
import (
|
|
"github.com/rsteube/carapace"
|
|
"github.com/spf13/cobra"
|
|
)
|
|
|
|
var context_lsCmd = &cobra.Command{
|
|
Use: "ls [OPTIONS]",
|
|
Short: "List contexts",
|
|
Aliases: []string{"list"},
|
|
Run: func(cmd *cobra.Command, args []string) {},
|
|
}
|
|
|
|
func init() {
|
|
carapace.Gen(context_lsCmd).Standalone()
|
|
|
|
context_lsCmd.Flags().String("format", "", "Format output using a custom template:")
|
|
context_lsCmd.Flags().BoolP("quiet", "q", false, "Only show context names")
|
|
contextCmd.AddCommand(context_lsCmd)
|
|
}
|