package query import ( "testing" "github.com/stretchr/testify/assert" ) func TestCommand(t *testing.T) { cmd := Command() assert.NotNil(t, cmd) cmd.SetArgs([]string{"-i", "object.yaml", "-q", "query-file"}) err := cmd.Execute() assert.Error(t, err) }