mirror of
https://github.com/rsteube/carapace-bin.git
synced 2025-05-23 08:01:15 +00:00
25 lines
580 B
Go
25 lines
580 B
Go
package cmd
|
|
|
|
import (
|
|
"github.com/rsteube/carapace"
|
|
"github.com/spf13/cobra"
|
|
)
|
|
|
|
var pub_getCmd = &cobra.Command{
|
|
Use: "get",
|
|
Short: "Get packages in a Flutter project",
|
|
Run: func(cmd *cobra.Command, args []string) {},
|
|
}
|
|
|
|
func init() {
|
|
carapace.Gen(pub_getCmd).Standalone()
|
|
|
|
pub_getCmd.Flags().BoolP("help", "h", false, "Print this usage information.")
|
|
pub_getCmd.Flags().Bool("offline", false, "Use cached packages instead of accessing the network.")
|
|
pubCmd.AddCommand(pub_getCmd)
|
|
|
|
carapace.Gen(pub_getCmd).PositionalCompletion(
|
|
carapace.ActionDirectories(),
|
|
)
|
|
}
|