diff --git a/cli/worker/i_test.go b/cli/worker/i_test.go index a18ec10..170aa58 100644 --- a/cli/worker/i_test.go +++ b/cli/worker/i_test.go @@ -7,7 +7,7 @@ import ( "github.com/hedzr/cmdr/v2/builder" "github.com/hedzr/cmdr/v2/cli" - "github.com/hedzr/cmdr/v2/examples" + "github.com/hedzr/cmdr/v2/cli/examples" ) func cleanApp(t *testing.T, helpScreen bool) (app cli.App, ww *workerS) { //nolint:revive diff --git a/cmdr_test.go b/cmdr_test.go index 88a0a11..278b431 100644 --- a/cmdr_test.go +++ b/cmdr_test.go @@ -5,7 +5,6 @@ import ( cmdr "github.com/hedzr/cmdr/v2" "github.com/hedzr/cmdr/v2/cli" - "github.com/hedzr/cmdr/v2/testdata" "gopkg.in/hedzr/errors.v3" ) @@ -16,8 +15,8 @@ func TestExecNoRoot(t *testing.T) { } } -func TestExecSimple(t *testing.T) { - if err := cmdr.Exec(testdata.BuildCommands(true)); !errors.Iss(err, cli.ErrEmptyRootCommand) { - t.Errorf("Error: %v", err) - } -} +// func TestExecSimple(t *testing.T) { +// if err := cmdr.Exec(testdata.BuildCommands(true)); !errors.Iss(err, cli.ErrEmptyRootCommand) { +// t.Errorf("Error: %v", err) +// } +// }