Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var RootCmd = &cobra.Command{ Use: "gocompatible", Short: "Find dependent packages and run their tests to ensure backwards compatibility", Long: ` Backwards compatibility is really important in Go, specially with the limitations around package versioning. _gocompatible_ helps you keep your packages backwards compatible: - Find packages that depend on yours from your GOPATH or from godoc.org - Run tests from all the packages depending on yours - Check whether any dependeng packages break on different revisions # Security ` + securityInstructions, Example: strings.Join([]string{ dependentsCmd.Example, testCmd.Example, diffCmd.Example, }, "\n\n"), PersistentPreRun: func(command *cobra.Command, _ []string) { if docker { cmd := exec.Command("docker", strings.Split( "run --rm quay.io/ernesto_jimenez/gocompatible:latest gocompatible", " ", )...) for _, arg := range os.Args[1:] { if arg != "--docker" && arg != "-d" { cmd.Args = append(cmd.Args, arg) } } if command == testCmd || command == diffCmd { cmd.Args = append(cmd.Args, "--insecure") } cmd.Stdout = os.Stdout cmd.Stderr = os.Stderr err := cmd.Run() if err != nil { log.Fatal(err) } } }, }
RootCmd represents the base command when called without any subcommands
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.