mirror of
https://github.com/rsteube/carapace-bin.git
synced 2025-05-05 15:32:53 +00:00
25 lines
556 B
Go
25 lines
556 B
Go
package cmd
|
|
|
|
import (
|
|
"github.com/carapace-sh/carapace"
|
|
"github.com/carapace-sh/carapace-bin/pkg/actions/tools/apt"
|
|
"github.com/spf13/cobra"
|
|
)
|
|
|
|
var showCmd = &cobra.Command{
|
|
Use: "show [pattern]...",
|
|
Short: "show package details",
|
|
Run: func(cmd *cobra.Command, args []string) {},
|
|
}
|
|
|
|
func init() {
|
|
carapace.Gen(showCmd).Standalone()
|
|
|
|
showCmd.Flags().BoolP("all-versions", "a", false, "print full records for all available versions")
|
|
rootCmd.AddCommand(showCmd)
|
|
|
|
carapace.Gen(showCmd).PositionalAnyCompletion(
|
|
apt.ActionPackageSearch(),
|
|
)
|
|
}
|