Ralf Steube 981bf794e5
added apt (#2718)
initial version with incorrect flag types and descriptionsg
2025-03-02 10:29:26 +01:00

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(),
)
}