mirror of
https://github.com/rsteube/carapace-bin.git
synced 2025-05-23 08:01:15 +00:00
- update go:generate to patch init() functions to only be called for relevant completer - added `release` build tag - updated goreleaser to use the `release` tag - fixed special `_{suffix}.go` files (still needs general solution/linter) - still very messy but works for now
20 lines
388 B
Go
20 lines
388 B
Go
package cmd
|
|
|
|
import (
|
|
"github.com/rsteube/carapace"
|
|
"github.com/spf13/cobra"
|
|
)
|
|
|
|
var pub_testCmd = &cobra.Command{
|
|
Use: "test",
|
|
Short: "Run the test package",
|
|
Run: func(cmd *cobra.Command, args []string) {},
|
|
}
|
|
|
|
func init() {
|
|
carapace.Gen(pub_testCmd).Standalone()
|
|
|
|
pub_testCmd.Flags().BoolP("help", "h", false, "Print this usage information.")
|
|
pubCmd.AddCommand(pub_testCmd)
|
|
}
|