mirror of
https://github.com/rsteube/carapace-bin.git
synced 2025-05-05 15:32:53 +00:00
27 lines
643 B
Go
27 lines
643 B
Go
package cmd
|
|
|
|
import (
|
|
"github.com/carapace-sh/carapace"
|
|
"github.com/carapace-sh/carapace-bin/completers/apt_completer/cmd/common"
|
|
"github.com/carapace-sh/carapace-bin/pkg/actions/tools/apt"
|
|
"github.com/spf13/cobra"
|
|
)
|
|
|
|
var upgradeCmd = &cobra.Command{
|
|
Use: "upgrade [pattern]...",
|
|
Short: "upgrade the system by installing/upgrading packages",
|
|
Run: func(cmd *cobra.Command, args []string) {},
|
|
}
|
|
|
|
func init() {
|
|
carapace.Gen(upgradeCmd).Standalone()
|
|
|
|
common.AddGetFlags(upgradeCmd)
|
|
common.ActionInstallFlags(upgradeCmd)
|
|
rootCmd.AddCommand(upgradeCmd)
|
|
|
|
carapace.Gen(upgradeCmd).PositionalAnyCompletion(
|
|
apt.ActionPackages(),
|
|
)
|
|
}
|