2023-03-09 09:26:56 +00:00
|
|
|
package bundle
|
|
|
|
|
|
|
|
import (
|
|
|
|
"fmt"
|
|
|
|
|
|
|
|
"github.com/spf13/cobra"
|
|
|
|
)
|
|
|
|
|
2023-07-27 10:03:08 +00:00
|
|
|
func newTestCommand() *cobra.Command {
|
|
|
|
cmd := &cobra.Command{
|
|
|
|
Use: "test",
|
|
|
|
Short: "run tests for the project",
|
|
|
|
Long: `This is longer description of the command`,
|
2023-03-09 09:26:56 +00:00
|
|
|
|
2023-07-27 10:03:08 +00:00
|
|
|
// We're not ready to expose this command until we specify its semantics.
|
|
|
|
Hidden: true,
|
|
|
|
}
|
|
|
|
|
|
|
|
cmd.RunE = func(cmd *cobra.Command, args []string) error {
|
2023-03-09 09:26:56 +00:00
|
|
|
return fmt.Errorf("TODO")
|
|
|
|
// results := project.RunPythonOnDev(cmd.Context(), `return 1`)
|
|
|
|
// if results.Failed() {
|
|
|
|
// return results.Err()
|
|
|
|
// }
|
|
|
|
// fmt.Fprintf(cmd.OutOrStdout(), "Success: %s", results.Text())
|
|
|
|
// return nil
|
2023-07-27 10:03:08 +00:00
|
|
|
}
|
2023-03-09 09:26:56 +00:00
|
|
|
|
2023-07-27 10:03:08 +00:00
|
|
|
return cmd
|
2023-03-09 09:26:56 +00:00
|
|
|
}
|