mirror of
https://github.com/rsteube/carapace-bin.git
synced 2025-05-05 15:32:53 +00:00
25 lines
511 B
Go
25 lines
511 B
Go
package cmd
|
|
|
|
import (
|
|
"github.com/carapace-sh/carapace"
|
|
"github.com/spf13/cobra"
|
|
)
|
|
|
|
var uninstallCmd = &cobra.Command{
|
|
Use: "uninstall",
|
|
Short: "remove this app package from the device",
|
|
Run: func(cmd *cobra.Command, args []string) {},
|
|
}
|
|
|
|
func init() {
|
|
carapace.Gen(uninstallCmd).Standalone()
|
|
|
|
uninstallCmd.Flags().BoolS("k", "k", false, "keep the data and cache directories")
|
|
|
|
rootCmd.AddCommand(uninstallCmd)
|
|
|
|
carapace.Gen(uninstallCmd).PositionalCompletion(
|
|
carapace.ActionFiles(".apk"),
|
|
)
|
|
}
|