mirror of
https://github.com/rsteube/carapace-bin.git
synced 2025-05-22 23:51:16 +00:00
24 lines
678 B
Go
24 lines
678 B
Go
package cmd
|
|
|
|
import (
|
|
"github.com/rsteube/carapace"
|
|
"github.com/spf13/cobra"
|
|
)
|
|
|
|
var plugin_lsCmd = &cobra.Command{
|
|
Use: "ls [OPTIONS]",
|
|
Short: "List plugins",
|
|
Aliases: []string{"list"},
|
|
Run: func(cmd *cobra.Command, args []string) {},
|
|
}
|
|
|
|
func init() {
|
|
carapace.Gen(plugin_lsCmd).Standalone()
|
|
|
|
plugin_lsCmd.Flags().StringP("filter", "f", "", "Provide filter values (e.g. \"enabled=true\")")
|
|
plugin_lsCmd.Flags().String("format", "", "Format output using a custom template:")
|
|
plugin_lsCmd.Flags().Bool("no-trunc", false, "Don't truncate output")
|
|
plugin_lsCmd.Flags().BoolP("quiet", "q", false, "Only display plugin IDs")
|
|
pluginCmd.AddCommand(plugin_lsCmd)
|
|
}
|