mirror of
https://github.com/rsteube/carapace-bin.git
synced 2025-05-22 23:51:16 +00:00
24 lines
653 B
Go
24 lines
653 B
Go
package cmd
|
|
|
|
import (
|
|
"github.com/rsteube/carapace"
|
|
"github.com/spf13/cobra"
|
|
)
|
|
|
|
var searchCmd = &cobra.Command{
|
|
Use: "search",
|
|
Short: "Search the Docker Hub for images",
|
|
GroupID: "common",
|
|
Run: func(cmd *cobra.Command, args []string) {},
|
|
}
|
|
|
|
func init() {
|
|
carapace.Gen(searchCmd).Standalone()
|
|
|
|
searchCmd.Flags().StringP("filter", "f", "", "Filter output based on conditions provided")
|
|
searchCmd.Flags().String("format", "", "Pretty-print search using a Go template")
|
|
searchCmd.Flags().Int("limit", 0, "Max number of search results")
|
|
searchCmd.Flags().Bool("no-trunc", false, "Don't truncate output")
|
|
rootCmd.AddCommand(searchCmd)
|
|
}
|