Search Options

Results per page
Sort
Preferred Languages
Advance

Results 101 - 110 of 183 for cobra (0.09 sec)

  1. pkg/test/framework/tools/featuresgen/cmd/root.go

    `
    
    	ConstOpen = `
    const (
    `
    
    	ConstClose = `
    )
    `
    )
    
    var (
    	input  string
    	output string
    
    	rootCmd = &cobra.Command{
    		Use:   "featuresgen [OPTIONS]",
    		Short: "FeaturesGen generates valid test labels from a yaml file",
    		Run: func(cmd *cobra.Command, args []string) {
    			createLabelsFile()
    		},
    	}
    
    	alphanumericRegex = regexp.MustCompile(`[^a-zA-Z0-9-]`)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Jul 25 19:30:47 UTC 2022
    - 5.4K bytes
    - Viewed (0)
  2. cmd/kubeadm/app/cmd/upgrade/apply.go

    	return !(f.nonInteractiveMode || f.dryRun || f.force)
    }
    
    // newCmdApply returns the cobra command for `kubeadm upgrade apply`
    func newCmdApply(apf *applyPlanFlags) *cobra.Command {
    	flags := &applyFlags{
    		applyPlanFlags: apf,
    		etcdUpgrade:    true,
    		renewCerts:     true,
    	}
    
    	cmd := &cobra.Command{
    		Use:                   "apply [version]",
    		DisableFlagsInUseLine: true,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 28 03:55:23 UTC 2024
    - 11.6K bytes
    - Viewed (0)
  3. pkg/kubectl/cmd/convert/convert.go

    	o := NewConvertOptions(ioStreams)
    
    	cmd := &cobra.Command{
    		Use:                   "convert -f FILENAME",
    		DisableFlagsInUseLine: true,
    		Short:                 i18n.T("Convert config files between different API versions"),
    		Long:                  convertLong,
    		Example:               convertExample,
    		Run: func(cmd *cobra.Command, args []string) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 12 03:21:17 UTC 2023
    - 9.6K bytes
    - Viewed (0)
  4. istioctl/pkg/internaldebug/internal-debug_test.go

    package internaldebug
    
    import (
    	"bytes"
    	"context"
    	"fmt"
    	"net/http"
    	"strings"
    	"testing"
    
    	discovery "github.com/envoyproxy/go-control-plane/envoy/service/discovery/v3"
    	"github.com/spf13/cobra"
    	"google.golang.org/grpc"
    	corev1 "k8s.io/api/core/v1"
    	metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
    	"k8s.io/cli-runtime/pkg/resource"
    	"k8s.io/client-go/rest/fake"
    	cmdtesting "k8s.io/kubectl/pkg/cmd/testing"
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Mar 15 08:28:50 UTC 2024
    - 4.5K bytes
    - Viewed (0)
  5. staging/src/k8s.io/cli-runtime/pkg/genericclioptions/command_headers.go

    limitations under the License.
    */
    
    package genericclioptions
    
    import (
    	"net/http"
    	"strings"
    
    	"github.com/google/uuid"
    	"github.com/spf13/cobra"
    )
    
    const (
    	kubectlCommandHeader = "Kubectl-Command"
    	kubectlSessionHeader = "Kubectl-Session"
    )
    
    // CommandHeaderRoundTripper adds a layer around the standard
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jul 26 17:14:05 UTC 2022
    - 3.2K bytes
    - Viewed (0)
  6. istioctl/pkg/describe/describe.go

    		return ""
    	}
    
    	return injectionStatus.Revision
    }
    
    func Cmd(ctx cli.Context) *cobra.Command {
    	describeCmd := &cobra.Command{
    		Use:     "describe",
    		Aliases: []string{"des"},
    		Short:   "Describe resource and related Istio configuration",
    		Args: func(cmd *cobra.Command, args []string) error {
    			if len(args) != 0 {
    				return fmt.Errorf("unknown resource type %q", args[0])
    			}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sat Apr 13 05:23:38 UTC 2024
    - 50.4K bytes
    - Viewed (0)
  7. staging/src/k8s.io/cli-runtime/pkg/genericclioptions/print_flags.go

    		}
    	}
    
    	return nil, NoCompatiblePrinterError{OutputFormat: f.OutputFormat, AllowedFormats: f.AllowedFormats()}
    }
    
    // AddFlags receives a *cobra.Command reference and binds
    // flags related to JSON/Yaml/Name/Template printing to it
    func (f *PrintFlags) AddFlags(cmd *cobra.Command) {
    	f.JSONYamlPrintFlags.AddFlags(cmd)
    	f.NamePrintFlags.AddFlags(cmd)
    	f.TemplatePrinterFlags.AddFlags(cmd)
    
    	if f.OutputFormat != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 04 00:16:47 UTC 2022
    - 5.6K bytes
    - Viewed (0)
  8. cmd/genman/gen_kube_man.go

    limitations under the License.
    */
    
    package main
    
    import (
    	"bytes"
    	"fmt"
    	"io"
    	"os"
    	"strings"
    
    	mangen "github.com/cpuguy83/go-md2man/v2/md2man"
    	"github.com/spf13/cobra"
    	"github.com/spf13/pflag"
    	"k8s.io/cli-runtime/pkg/genericiooptions"
    	kubectlcmd "k8s.io/kubectl/pkg/cmd"
    	"k8s.io/kubernetes/cmd/genutils"
    	apiservapp "k8s.io/kubernetes/cmd/kube-apiserver/app"
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 05 12:03:09 UTC 2023
    - 6.3K bytes
    - Viewed (0)
  9. cmd/kubeadm/app/cmd/phases/workflow/doc.go

    after their parent phase.
    
    The phase runner can be bound to a cobra command; this operation sets the command description
    giving evidence of the list of phases, and automatically creates sub commands
    for invoking phases atomically.
    
    Autogenerated sub commands get flags according to the following rule:
    
    - global flags will be always inherited by autogenerated commands (this is managed by cobra)
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Feb 14 23:49:31 UTC 2019
    - 2.6K bytes
    - Viewed (0)
  10. istioctl/pkg/ztunnelconfig/ztunnelconfig_test.go

    // limitations under the License.
    
    package ztunnelconfig
    
    import (
    	"bytes"
    	"fmt"
    	"net/http"
    	"strings"
    	"testing"
    
    	"github.com/spf13/cobra"
    	"k8s.io/cli-runtime/pkg/resource"
    	"k8s.io/client-go/rest/fake"
    	cmdtesting "k8s.io/kubectl/pkg/cmd/testing"
    	cmdutil "k8s.io/kubectl/pkg/cmd/util"
    
    	"istio.io/istio/istioctl/pkg/cli"
    	"istio.io/istio/pkg/kube"
    )
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Apr 10 21:51:29 UTC 2024
    - 3.8K bytes
    - Viewed (0)
Back to top