Skip kn subpackage

This commit is contained in:
Chris Suszyński 2024-06-20 18:39:01 +02:00
parent befa3be9f2
commit 51a0693a20
No known key found for this signature in database
GPG Key ID: 97CCAEB0D718922B
260 changed files with 241 additions and 242 deletions

View File

@ -22,9 +22,9 @@ import (
"strings" "strings"
"github.com/spf13/cobra" "github.com/spf13/cobra"
"knative.dev/client/pkg/kn/config" "knative.dev/client/pkg/config"
pluginpkg "knative.dev/client/pkg/kn/plugin" pluginpkg "knative.dev/client/pkg/plugin"
"knative.dev/client/pkg/kn/root" "knative.dev/client/pkg/root"
) )
func main() { func main() {

View File

@ -21,14 +21,14 @@ import (
"strings" "strings"
"testing" "testing"
pluginpkg "knative.dev/client/pkg/kn/plugin" "knative.dev/client/pkg/config"
pluginpkg "knative.dev/client/pkg/plugin"
"github.com/spf13/cobra" "github.com/spf13/cobra"
"gotest.tools/v3/assert" "gotest.tools/v3/assert"
"knative.dev/client/lib/test" "knative.dev/client/lib/test"
"knative.dev/client/pkg/kn/config" "knative.dev/client/pkg/root"
"knative.dev/client/pkg/kn/root"
"knative.dev/client/pkg/util" "knative.dev/client/pkg/util"
) )

View File

@ -20,7 +20,7 @@ import (
"os" "os"
"github.com/spf13/cobra/doc" "github.com/spf13/cobra/doc"
"knative.dev/client/pkg/kn/root" "knative.dev/client/pkg/root"
) )
func main() { func main() {

View File

@ -19,7 +19,7 @@ package broker
import ( import (
"github.com/spf13/cobra" "github.com/spf13/cobra"
"knative.dev/client/pkg/kn/commands" "knative.dev/client/pkg/commands"
) )
// NewBrokerCommand represents broker management commands // NewBrokerCommand represents broker management commands

View File

@ -26,8 +26,8 @@ import (
duckv1 "knative.dev/pkg/apis/duck/v1" duckv1 "knative.dev/pkg/apis/duck/v1"
servingv1 "knative.dev/serving/pkg/apis/serving/v1" servingv1 "knative.dev/serving/pkg/apis/serving/v1"
"knative.dev/client/pkg/commands"
clientv1beta1 "knative.dev/client/pkg/eventing/v1" clientv1beta1 "knative.dev/client/pkg/eventing/v1"
"knative.dev/client/pkg/kn/commands"
v1beta1 "knative.dev/eventing/pkg/apis/eventing/v1" v1beta1 "knative.dev/eventing/pkg/apis/eventing/v1"
) )

View File

@ -24,8 +24,8 @@ import (
v1 "knative.dev/eventing/pkg/apis/duck/v1" v1 "knative.dev/eventing/pkg/apis/duck/v1"
duckv1 "knative.dev/pkg/apis/duck/v1" duckv1 "knative.dev/pkg/apis/duck/v1"
"knative.dev/client/pkg/commands"
clientv1beta1 "knative.dev/client/pkg/eventing/v1" clientv1beta1 "knative.dev/client/pkg/eventing/v1"
"knative.dev/client/pkg/kn/commands"
) )
var createExample = ` var createExample = `

View File

@ -23,7 +23,7 @@ import (
"github.com/spf13/cobra" "github.com/spf13/cobra"
"knative.dev/client/pkg/kn/commands" "knative.dev/client/pkg/commands"
) )
var deleteExample = ` var deleteExample = `

View File

@ -18,8 +18,8 @@ import (
"reflect" "reflect"
"github.com/spf13/cobra" "github.com/spf13/cobra"
"knative.dev/client/pkg/commands/flags"
"knative.dev/client/pkg/dynamic" "knative.dev/client/pkg/dynamic"
"knative.dev/client/pkg/kn/commands/flags"
duckv1 "knative.dev/pkg/apis/duck/v1" duckv1 "knative.dev/pkg/apis/duck/v1"
) )

View File

@ -28,7 +28,7 @@ import (
v1beta1 "knative.dev/eventing/pkg/apis/eventing/v1" v1beta1 "knative.dev/eventing/pkg/apis/eventing/v1"
"knative.dev/client/pkg/kn/commands" "knative.dev/client/pkg/commands"
"knative.dev/client/pkg/printers" "knative.dev/client/pkg/printers"
) )

View File

@ -26,8 +26,8 @@ import (
metav1beta1 "k8s.io/apimachinery/pkg/apis/meta/v1beta1" metav1beta1 "k8s.io/apimachinery/pkg/apis/meta/v1beta1"
"k8s.io/apimachinery/pkg/runtime" "k8s.io/apimachinery/pkg/runtime"
"knative.dev/client/pkg/kn/commands" "knative.dev/client/pkg/commands"
"knative.dev/client/pkg/kn/commands/flags" "knative.dev/client/pkg/commands/flags"
hprinters "knative.dev/client/pkg/printers" hprinters "knative.dev/client/pkg/printers"
eventingv1 "knative.dev/eventing/pkg/apis/eventing/v1" eventingv1 "knative.dev/eventing/pkg/apis/eventing/v1"
) )

View File

@ -25,7 +25,7 @@ import (
v1 "knative.dev/client/pkg/eventing/v1" v1 "knative.dev/client/pkg/eventing/v1"
duckv1 "knative.dev/eventing/pkg/apis/duck/v1" duckv1 "knative.dev/eventing/pkg/apis/duck/v1"
"knative.dev/client/pkg/kn/commands" "knative.dev/client/pkg/commands"
eventingv1 "knative.dev/eventing/pkg/apis/eventing/v1" eventingv1 "knative.dev/eventing/pkg/apis/eventing/v1"
) )

View File

@ -18,7 +18,7 @@ import (
"github.com/spf13/cobra" "github.com/spf13/cobra"
"k8s.io/client-go/tools/clientcmd" "k8s.io/client-go/tools/clientcmd"
"knative.dev/client/pkg/kn/commands" "knative.dev/client/pkg/commands"
messagingv1 "knative.dev/client/pkg/messaging/v1" messagingv1 "knative.dev/client/pkg/messaging/v1"
clientv1beta1 "knative.dev/eventing/pkg/client/clientset/versioned/typed/messaging/v1" clientv1beta1 "knative.dev/eventing/pkg/client/clientset/versioned/typed/messaging/v1"
) )

View File

@ -24,7 +24,7 @@ import (
"k8s.io/client-go/tools/clientcmd" "k8s.io/client-go/tools/clientcmd"
messagingv1 "knative.dev/eventing/pkg/apis/messaging/v1" messagingv1 "knative.dev/eventing/pkg/apis/messaging/v1"
"knative.dev/client/pkg/kn/commands" "knative.dev/client/pkg/commands"
clientv1beta1 "knative.dev/client/pkg/messaging/v1" clientv1beta1 "knative.dev/client/pkg/messaging/v1"
eventingduck "knative.dev/eventing/pkg/apis/duck/v1" eventingduck "knative.dev/eventing/pkg/apis/duck/v1"
) )

View File

@ -20,9 +20,9 @@ import (
"github.com/spf13/cobra" "github.com/spf13/cobra"
"knative.dev/client/pkg/commands"
knerrors "knative.dev/client/pkg/errors" knerrors "knative.dev/client/pkg/errors"
"knative.dev/client/pkg/kn/commands" knflags "knative.dev/client/pkg/flags"
knflags "knative.dev/client/pkg/kn/flags"
knmessagingv1 "knative.dev/client/pkg/messaging/v1" knmessagingv1 "knative.dev/client/pkg/messaging/v1"
) )

View File

@ -19,7 +19,7 @@ import (
"fmt" "fmt"
"github.com/spf13/cobra" "github.com/spf13/cobra"
"knative.dev/client/pkg/kn/commands" "knative.dev/client/pkg/commands"
) )
// NewChannelDeleteCommand is for deleting a Channel // NewChannelDeleteCommand is for deleting a Channel

View File

@ -24,8 +24,8 @@ import (
"k8s.io/cli-runtime/pkg/genericclioptions" "k8s.io/cli-runtime/pkg/genericclioptions"
messagingv1 "knative.dev/eventing/pkg/apis/messaging/v1" messagingv1 "knative.dev/eventing/pkg/apis/messaging/v1"
"knative.dev/client/pkg/commands"
knerrors "knative.dev/client/pkg/errors" knerrors "knative.dev/client/pkg/errors"
"knative.dev/client/pkg/kn/commands"
"knative.dev/client/pkg/printers" "knative.dev/client/pkg/printers"
) )

View File

@ -22,7 +22,7 @@ import (
metav1beta1 "k8s.io/apimachinery/pkg/apis/meta/v1beta1" metav1beta1 "k8s.io/apimachinery/pkg/apis/meta/v1beta1"
"k8s.io/apimachinery/pkg/runtime" "k8s.io/apimachinery/pkg/runtime"
"knative.dev/client/pkg/kn/commands" "knative.dev/client/pkg/commands"
"knative.dev/client/pkg/printers" "knative.dev/client/pkg/printers"
hprinters "knative.dev/client/pkg/printers" hprinters "knative.dev/client/pkg/printers"

View File

@ -21,8 +21,8 @@ import (
messagingv1 "knative.dev/eventing/pkg/apis/messaging/v1" messagingv1 "knative.dev/eventing/pkg/apis/messaging/v1"
"github.com/spf13/cobra" "github.com/spf13/cobra"
"knative.dev/client/pkg/kn/commands" "knative.dev/client/pkg/commands"
"knative.dev/client/pkg/kn/commands/flags" "knative.dev/client/pkg/commands/flags"
"knative.dev/eventing/pkg/client/clientset/versioned/scheme" "knative.dev/eventing/pkg/client/clientset/versioned/scheme"
) )

View File

@ -21,10 +21,10 @@ import (
"github.com/spf13/cobra" "github.com/spf13/cobra"
"k8s.io/apimachinery/pkg/apis/meta/v1/unstructured" "k8s.io/apimachinery/pkg/apis/meta/v1/unstructured"
"k8s.io/apimachinery/pkg/runtime/schema" "k8s.io/apimachinery/pkg/runtime/schema"
"knative.dev/client/pkg/commands"
"knative.dev/client/pkg/commands/flags"
"knative.dev/client/pkg/dynamic" "knative.dev/client/pkg/dynamic"
knerrors "knative.dev/client/pkg/errors" knerrors "knative.dev/client/pkg/errors"
"knative.dev/client/pkg/kn/commands"
"knative.dev/client/pkg/kn/commands/flags"
messagingv1 "knative.dev/client/pkg/messaging/v1" messagingv1 "knative.dev/client/pkg/messaging/v1"
) )

View File

@ -29,8 +29,8 @@ import (
dynamicfakeClient "knative.dev/client/pkg/dynamic/fake" dynamicfakeClient "knative.dev/client/pkg/dynamic/fake"
"knative.dev/client/pkg/commands"
clientdynamic "knative.dev/client/pkg/dynamic" clientdynamic "knative.dev/client/pkg/dynamic"
"knative.dev/client/pkg/kn/commands"
"knative.dev/client/pkg/util" "knative.dev/client/pkg/util"
"knative.dev/eventing/pkg/apis/messaging" "knative.dev/eventing/pkg/apis/messaging"
) )

View File

@ -18,7 +18,7 @@ import (
"errors" "errors"
"os" "os"
"knative.dev/client/pkg/kn/commands" "knative.dev/client/pkg/commands"
"github.com/spf13/cobra" "github.com/spf13/cobra"
) )

View File

@ -18,7 +18,7 @@ import (
"testing" "testing"
"knative.dev/client/lib/test" "knative.dev/client/lib/test"
"knative.dev/client/pkg/kn/commands" "knative.dev/client/pkg/commands"
"knative.dev/client/pkg/util" "knative.dev/client/pkg/util"
"github.com/spf13/cobra" "github.com/spf13/cobra"

View File

@ -21,8 +21,8 @@ import (
"github.com/spf13/cobra" "github.com/spf13/cobra"
corev1 "k8s.io/api/core/v1" corev1 "k8s.io/api/core/v1"
"knative.dev/client/pkg/kn/commands" "knative.dev/client/pkg/commands"
knflags "knative.dev/client/pkg/kn/flags" knflags "knative.dev/client/pkg/flags"
sigyaml "sigs.k8s.io/yaml" sigyaml "sigs.k8s.io/yaml"
) )

View File

@ -16,7 +16,7 @@ package container
import ( import (
"github.com/spf13/cobra" "github.com/spf13/cobra"
"knative.dev/client/pkg/kn/commands" "knative.dev/client/pkg/commands"
) )
// NewContainerCommand to manage containers // NewContainerCommand to manage containers

View File

@ -19,7 +19,7 @@ import (
"testing" "testing"
"gotest.tools/v3/assert" "gotest.tools/v3/assert"
"knative.dev/client/pkg/kn/commands" "knative.dev/client/pkg/commands"
) )
func TestContainerCommand(t *testing.T) { func TestContainerCommand(t *testing.T) {

View File

@ -21,8 +21,8 @@ import (
"github.com/spf13/cobra" "github.com/spf13/cobra"
"k8s.io/apimachinery/pkg/util/validation" "k8s.io/apimachinery/pkg/util/validation"
"knative.dev/client/pkg/commands"
knerrors "knative.dev/client/pkg/errors" knerrors "knative.dev/client/pkg/errors"
"knative.dev/client/pkg/kn/commands"
clientv1beta1 "knative.dev/client/pkg/serving/v1beta1" clientv1beta1 "knative.dev/client/pkg/serving/v1beta1"
) )

View File

@ -20,8 +20,8 @@ import (
"github.com/spf13/cobra" "github.com/spf13/cobra"
"knative.dev/client/pkg/commands"
knerrors "knative.dev/client/pkg/errors" knerrors "knative.dev/client/pkg/errors"
"knative.dev/client/pkg/kn/commands"
) )
// NewDomainMappingDeleteCommand to create event channels // NewDomainMappingDeleteCommand to create event channels

View File

@ -23,7 +23,7 @@ import (
"github.com/spf13/cobra" "github.com/spf13/cobra"
"k8s.io/cli-runtime/pkg/genericclioptions" "k8s.io/cli-runtime/pkg/genericclioptions"
"knative.dev/client/pkg/kn/commands" "knative.dev/client/pkg/commands"
"knative.dev/client/pkg/printers" "knative.dev/client/pkg/printers"
"knative.dev/serving/pkg/apis/serving/v1beta1" "knative.dev/serving/pkg/apis/serving/v1beta1"
) )

View File

@ -22,8 +22,8 @@ import (
"github.com/spf13/cobra" "github.com/spf13/cobra"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/runtime/schema" "k8s.io/apimachinery/pkg/runtime/schema"
"knative.dev/client/pkg/commands"
clientdynamic "knative.dev/client/pkg/dynamic" clientdynamic "knative.dev/client/pkg/dynamic"
"knative.dev/client/pkg/kn/commands"
duckv1 "knative.dev/pkg/apis/duck/v1" duckv1 "knative.dev/pkg/apis/duck/v1"
) )

View File

@ -26,10 +26,10 @@ import (
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/client-go/tools/clientcmd" "k8s.io/client-go/tools/clientcmd"
"knative.dev/client/pkg/commands"
kndynamic "knative.dev/client/pkg/dynamic" kndynamic "knative.dev/client/pkg/dynamic"
dynamicfake "knative.dev/client/pkg/dynamic/fake" dynamicfake "knative.dev/client/pkg/dynamic/fake"
"knative.dev/client/pkg/kn/commands" knflags "knative.dev/client/pkg/flags"
knflags "knative.dev/client/pkg/kn/flags"
clientservingv1beta1 "knative.dev/client/pkg/serving/v1beta1" clientservingv1beta1 "knative.dev/client/pkg/serving/v1beta1"
duckv1 "knative.dev/pkg/apis/duck/v1" duckv1 "knative.dev/pkg/apis/duck/v1"
servingv1 "knative.dev/serving/pkg/apis/serving/v1" servingv1 "knative.dev/serving/pkg/apis/serving/v1"

View File

@ -19,7 +19,7 @@ import (
"k8s.io/apimachinery/pkg/runtime" "k8s.io/apimachinery/pkg/runtime"
"knative.dev/serving/pkg/apis/serving/v1beta1" "knative.dev/serving/pkg/apis/serving/v1beta1"
"knative.dev/client/pkg/kn/commands" "knative.dev/client/pkg/commands"
hprinters "knative.dev/client/pkg/printers" hprinters "knative.dev/client/pkg/printers"
) )

View File

@ -19,8 +19,8 @@ import (
"github.com/spf13/cobra" "github.com/spf13/cobra"
"knative.dev/client/pkg/kn/commands" "knative.dev/client/pkg/commands"
"knative.dev/client/pkg/kn/commands/flags" "knative.dev/client/pkg/commands/flags"
) )
// NewDomainMappingListCommand represents 'kn revision list' command // NewDomainMappingListCommand represents 'kn revision list' command

View File

@ -23,8 +23,8 @@ import (
"github.com/spf13/cobra" "github.com/spf13/cobra"
"knative.dev/client/pkg/commands"
knerrors "knative.dev/client/pkg/errors" knerrors "knative.dev/client/pkg/errors"
"knative.dev/client/pkg/kn/commands"
) )
// NewDomainMappingUpdateCommand to create event channels // NewDomainMappingUpdateCommand to create event channels

View File

@ -21,9 +21,9 @@ import (
"fmt" "fmt"
"github.com/spf13/cobra" "github.com/spf13/cobra"
"knative.dev/client/pkg/commands"
knflags "knative.dev/client/pkg/commands/flags"
clienteventingv1beta2 "knative.dev/client/pkg/eventing/v1beta2" clienteventingv1beta2 "knative.dev/client/pkg/eventing/v1beta2"
"knative.dev/client/pkg/kn/commands"
knflags "knative.dev/client/pkg/kn/commands/flags"
"knative.dev/pkg/apis" "knative.dev/pkg/apis"
) )

View File

@ -21,7 +21,7 @@ import (
"fmt" "fmt"
"github.com/spf13/cobra" "github.com/spf13/cobra"
"knative.dev/client/pkg/kn/commands" "knative.dev/client/pkg/commands"
) )
var deleteExample = ` var deleteExample = `

View File

@ -26,7 +26,7 @@ import (
"k8s.io/cli-runtime/pkg/genericclioptions" "k8s.io/cli-runtime/pkg/genericclioptions"
"knative.dev/eventing/pkg/apis/eventing/v1beta2" "knative.dev/eventing/pkg/apis/eventing/v1beta2"
"knative.dev/client/pkg/kn/commands" "knative.dev/client/pkg/commands"
"knative.dev/client/pkg/printers" "knative.dev/client/pkg/printers"
) )

View File

@ -20,7 +20,7 @@ import (
"github.com/spf13/cobra" "github.com/spf13/cobra"
"k8s.io/apimachinery/pkg/runtime/schema" "k8s.io/apimachinery/pkg/runtime/schema"
"knative.dev/client/pkg/kn/commands" "knative.dev/client/pkg/commands"
) )
// NewEventTypeCommand represents event type management commands // NewEventTypeCommand represents event type management commands

View File

@ -22,8 +22,8 @@ import (
kndynamic "knative.dev/client/pkg/dynamic" kndynamic "knative.dev/client/pkg/dynamic"
"k8s.io/client-go/tools/clientcmd" "k8s.io/client-go/tools/clientcmd"
"knative.dev/client/pkg/commands"
"knative.dev/client/pkg/eventing/v1beta2" "knative.dev/client/pkg/eventing/v1beta2"
"knative.dev/client/pkg/kn/commands"
eventingv1beta2 "knative.dev/eventing/pkg/apis/eventing/v1beta2" eventingv1beta2 "knative.dev/eventing/pkg/apis/eventing/v1beta2"
"knative.dev/pkg/apis" "knative.dev/pkg/apis"
) )

View File

@ -24,8 +24,8 @@ import (
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/runtime" "k8s.io/apimachinery/pkg/runtime"
"knative.dev/client/pkg/kn/commands" "knative.dev/client/pkg/commands"
"knative.dev/client/pkg/kn/commands/flags" "knative.dev/client/pkg/commands/flags"
hprinters "knative.dev/client/pkg/printers" hprinters "knative.dev/client/pkg/printers"
eventingv1beta2 "knative.dev/eventing/pkg/apis/eventing/v1beta2" eventingv1beta2 "knative.dev/eventing/pkg/apis/eventing/v1beta2"
) )

View File

@ -21,7 +21,7 @@ import (
"k8s.io/apimachinery/pkg/runtime" "k8s.io/apimachinery/pkg/runtime"
"k8s.io/cli-runtime/pkg/genericclioptions" "k8s.io/cli-runtime/pkg/genericclioptions"
"knative.dev/client/pkg/kn/commands" "knative.dev/client/pkg/commands"
hprinters "knative.dev/client/pkg/printers" hprinters "knative.dev/client/pkg/printers"
"knative.dev/client/pkg/util" "knative.dev/client/pkg/util"
) )

View File

@ -22,11 +22,11 @@ import (
"github.com/spf13/cobra" "github.com/spf13/cobra"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/runtime/schema" "k8s.io/apimachinery/pkg/runtime/schema"
"knative.dev/client/pkg/config"
"knative.dev/pkg/apis" "knative.dev/pkg/apis"
duckv1 "knative.dev/pkg/apis/duck/v1" duckv1 "knative.dev/pkg/apis/duck/v1"
clientdynamic "knative.dev/client/pkg/dynamic" clientdynamic "knative.dev/client/pkg/dynamic"
"knative.dev/client/pkg/kn/config"
) )
type SinkFlags struct { type SinkFlags struct {

View File

@ -20,10 +20,10 @@ import (
"strings" "strings"
"github.com/spf13/cobra" "github.com/spf13/cobra"
"knative.dev/client/pkg/config"
"knative.dev/client/pkg/kn/commands" "knative.dev/client/pkg/commands"
"knative.dev/client/pkg/kn/config" "knative.dev/client/pkg/plugin"
"knative.dev/client/pkg/kn/plugin"
) )
// ValidPluginFilenamePrefixes controls the prefix for all kn plugins // ValidPluginFilenamePrefixes controls the prefix for all kn plugins

View File

@ -22,8 +22,8 @@ import (
"strings" "strings"
"testing" "testing"
"knative.dev/client/pkg/kn/commands" "knative.dev/client/pkg/commands"
"knative.dev/client/pkg/kn/config" config2 "knative.dev/client/pkg/config"
"knative.dev/client/pkg/util" "knative.dev/client/pkg/util"
"github.com/spf13/cobra" "github.com/spf13/cobra"
@ -135,8 +135,8 @@ func prepareTestSetup(t *testing.T, args ...interface{}) (string, func()) {
tmpPathDir := t.TempDir() tmpPathDir := t.TempDir()
// Prepare configuration to for our test // Prepare configuration to for our test
oldConfig := config.GlobalConfig oldConfig := config2.GlobalConfig
config.GlobalConfig = &config.TestConfig{ config2.GlobalConfig = &config2.TestConfig{
TestPluginsDir: tmpPathDir, TestPluginsDir: tmpPathDir,
TestLookupPluginsInPath: false, TestLookupPluginsInPath: false,
} }
@ -148,7 +148,7 @@ func prepareTestSetup(t *testing.T, args ...interface{}) (string, func()) {
} }
return tmpPathDir, func() { return tmpPathDir, func() {
config.GlobalConfig = oldConfig config2.GlobalConfig = oldConfig
} }
} }

View File

@ -17,7 +17,7 @@ package plugin
import ( import (
"github.com/spf13/cobra" "github.com/spf13/cobra"
"knative.dev/client/pkg/kn/commands" "knative.dev/client/pkg/commands"
) )
func NewPluginCommand(p *commands.KnParams) *cobra.Command { func NewPluginCommand(p *commands.KnParams) *cobra.Command {

View File

@ -19,7 +19,7 @@ import (
"gotest.tools/v3/assert" "gotest.tools/v3/assert"
"knative.dev/client/pkg/kn/commands" "knative.dev/client/pkg/commands"
"knative.dev/client/pkg/util" "knative.dev/client/pkg/util"
) )

View File

@ -22,7 +22,7 @@ import (
"time" "time"
"github.com/spf13/cobra" "github.com/spf13/cobra"
"knative.dev/client/pkg/kn/commands" "knative.dev/client/pkg/commands"
v1 "knative.dev/client/pkg/serving/v1" v1 "knative.dev/client/pkg/serving/v1"
servingv1 "knative.dev/serving/pkg/apis/serving/v1" servingv1 "knative.dev/serving/pkg/apis/serving/v1"
) )

View File

@ -24,7 +24,7 @@ import (
"k8s.io/apimachinery/pkg/watch" "k8s.io/apimachinery/pkg/watch"
clienttesting "k8s.io/client-go/testing" clienttesting "k8s.io/client-go/testing"
"knative.dev/client/pkg/kn/commands" "knative.dev/client/pkg/commands"
"knative.dev/client/pkg/util" "knative.dev/client/pkg/util"
"knative.dev/client/pkg/wait" "knative.dev/client/pkg/wait"
servingv1 "knative.dev/serving/pkg/apis/serving/v1" servingv1 "knative.dev/serving/pkg/apis/serving/v1"

View File

@ -28,7 +28,7 @@ import (
"knative.dev/serving/pkg/apis/serving" "knative.dev/serving/pkg/apis/serving"
servingv1 "knative.dev/serving/pkg/apis/serving/v1" servingv1 "knative.dev/serving/pkg/apis/serving/v1"
"knative.dev/client/pkg/kn/commands" "knative.dev/client/pkg/commands"
"knative.dev/client/pkg/printers" "knative.dev/client/pkg/printers"
clientserving "knative.dev/client/pkg/serving" clientserving "knative.dev/client/pkg/serving"
) )

View File

@ -34,7 +34,7 @@ import (
servingv1 "knative.dev/serving/pkg/apis/serving/v1" servingv1 "knative.dev/serving/pkg/apis/serving/v1"
"sigs.k8s.io/yaml" "sigs.k8s.io/yaml"
"knative.dev/client/pkg/kn/commands" "knative.dev/client/pkg/commands"
"knative.dev/client/pkg/util" "knative.dev/client/pkg/util"
) )

View File

@ -20,7 +20,7 @@ import (
"knative.dev/serving/pkg/apis/serving" "knative.dev/serving/pkg/apis/serving"
servingv1 "knative.dev/serving/pkg/apis/serving/v1" servingv1 "knative.dev/serving/pkg/apis/serving/v1"
"knative.dev/client/pkg/kn/commands" "knative.dev/client/pkg/commands"
hprinters "knative.dev/client/pkg/printers" hprinters "knative.dev/client/pkg/printers"
) )

View File

@ -26,8 +26,8 @@ import (
"github.com/spf13/cobra" "github.com/spf13/cobra"
servingv1 "knative.dev/serving/pkg/apis/serving/v1" servingv1 "knative.dev/serving/pkg/apis/serving/v1"
"knative.dev/client/pkg/kn/commands" "knative.dev/client/pkg/commands"
"knative.dev/client/pkg/kn/commands/flags" "knative.dev/client/pkg/commands/flags"
clientservingv1 "knative.dev/client/pkg/serving/v1" clientservingv1 "knative.dev/client/pkg/serving/v1"
) )

View File

@ -25,7 +25,7 @@ import (
"knative.dev/serving/pkg/apis/serving" "knative.dev/serving/pkg/apis/serving"
servingv1 "knative.dev/serving/pkg/apis/serving/v1" servingv1 "knative.dev/serving/pkg/apis/serving/v1"
"knative.dev/client/pkg/kn/commands" "knative.dev/client/pkg/commands"
"knative.dev/client/pkg/util" "knative.dev/client/pkg/util"
) )

View File

@ -18,7 +18,7 @@ import (
"github.com/spf13/cobra" "github.com/spf13/cobra"
servingv1 "knative.dev/serving/pkg/apis/serving/v1" servingv1 "knative.dev/serving/pkg/apis/serving/v1"
"knative.dev/client/pkg/kn/commands" "knative.dev/client/pkg/commands"
) )
func NewRevisionCommand(p *commands.KnParams) *cobra.Command { func NewRevisionCommand(p *commands.KnParams) *cobra.Command {

View File

@ -22,10 +22,10 @@ import (
"github.com/spf13/cobra" "github.com/spf13/cobra"
"gotest.tools/v3/assert" "gotest.tools/v3/assert"
"k8s.io/client-go/tools/clientcmd" "k8s.io/client-go/tools/clientcmd"
knflags "knative.dev/client/pkg/kn/flags" knflags "knative.dev/client/pkg/flags"
servingv1 "knative.dev/serving/pkg/apis/serving/v1" servingv1 "knative.dev/serving/pkg/apis/serving/v1"
"knative.dev/client/pkg/kn/commands" "knative.dev/client/pkg/commands"
clientservingv1 "knative.dev/client/pkg/serving/v1" clientservingv1 "knative.dev/client/pkg/serving/v1"
"knative.dev/client/pkg/util" "knative.dev/client/pkg/util"
) )

View File

@ -23,7 +23,7 @@ import (
"k8s.io/cli-runtime/pkg/genericclioptions" "k8s.io/cli-runtime/pkg/genericclioptions"
servingv1 "knative.dev/serving/pkg/apis/serving/v1" servingv1 "knative.dev/serving/pkg/apis/serving/v1"
"knative.dev/client/pkg/kn/commands" "knative.dev/client/pkg/commands"
"knative.dev/client/pkg/printers" "knative.dev/client/pkg/printers"
) )

View File

@ -27,7 +27,7 @@ import (
servingv1 "knative.dev/serving/pkg/apis/serving/v1" servingv1 "knative.dev/serving/pkg/apis/serving/v1"
"sigs.k8s.io/yaml" "sigs.k8s.io/yaml"
"knative.dev/client/pkg/kn/commands" "knative.dev/client/pkg/commands"
"knative.dev/client/pkg/util" "knative.dev/client/pkg/util"
"knative.dev/pkg/ptr" "knative.dev/pkg/ptr"
) )

View File

@ -19,7 +19,7 @@ import (
"k8s.io/apimachinery/pkg/runtime" "k8s.io/apimachinery/pkg/runtime"
servingv1 "knative.dev/serving/pkg/apis/serving/v1" servingv1 "knative.dev/serving/pkg/apis/serving/v1"
"knative.dev/client/pkg/kn/commands" "knative.dev/client/pkg/commands"
hprinters "knative.dev/client/pkg/printers" hprinters "knative.dev/client/pkg/printers"
) )

View File

@ -18,13 +18,13 @@ import (
"errors" "errors"
"fmt" "fmt"
"knative.dev/client/pkg/kn/commands" "knative.dev/client/pkg/commands"
clientservingv1 "knative.dev/client/pkg/serving/v1" clientservingv1 "knative.dev/client/pkg/serving/v1"
"github.com/spf13/cobra" "github.com/spf13/cobra"
servingv1 "knative.dev/serving/pkg/apis/serving/v1" servingv1 "knative.dev/serving/pkg/apis/serving/v1"
"knative.dev/client/pkg/kn/commands/flags" "knative.dev/client/pkg/commands/flags"
) )
// NewrouteListCommand represents 'kn route list' command // NewrouteListCommand represents 'kn route list' command

View File

@ -25,7 +25,7 @@ import (
"knative.dev/pkg/ptr" "knative.dev/pkg/ptr"
servingv1 "knative.dev/serving/pkg/apis/serving/v1" servingv1 "knative.dev/serving/pkg/apis/serving/v1"
"knative.dev/client/pkg/kn/commands" "knative.dev/client/pkg/commands"
"knative.dev/client/pkg/util" "knative.dev/client/pkg/util"
) )

View File

@ -17,7 +17,7 @@ package route
import ( import (
"github.com/spf13/cobra" "github.com/spf13/cobra"
"knative.dev/client/pkg/kn/commands" "knative.dev/client/pkg/commands"
) )
func NewRouteCommand(p *commands.KnParams) *cobra.Command { func NewRouteCommand(p *commands.KnParams) *cobra.Command {

View File

@ -24,7 +24,7 @@ import (
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"knative.dev/client/pkg/util" "knative.dev/client/pkg/util"
"knative.dev/client/pkg/kn/commands" "knative.dev/client/pkg/commands"
) )
func NewSecretCreateCommand(p *commands.KnParams) *cobra.Command { func NewSecretCreateCommand(p *commands.KnParams) *cobra.Command {

Some files were not shown because too many files have changed in this diff Show More