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

22 lines
585 B
Go

package cmd
import (
"github.com/carapace-sh/carapace"
"github.com/spf13/cobra"
)
var updateCmd = &cobra.Command{
Use: "update",
Short: "update list of available packages",
Run: func(cmd *cobra.Command, args []string) {},
}
func init() {
carapace.Gen(updateCmd).Standalone()
updateCmd.Flags().Bool("allow-insecure-repositories", false, "allow insecure repositories")
updateCmd.Flags().Bool("list-cleanup", false, "automatically manage the contents of /var/lib/apt/lists")
updateCmd.Flags().Bool("print-uris", false, "print file URIs")
rootCmd.AddCommand(updateCmd)
}