Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 183 for cobra (0.04 sec)

  1. tools/istio-clean-iptables/pkg/cmd/root.go

    }
    
    func GetCommand(logOpts *log.Options) *cobra.Command {
    	cfg := config.DefaultConfig()
    	cmd := &cobra.Command{
    		Use:   "istio-clean-iptables",
    		Short: "Clean up iptables rules for Istio Sidecar",
    		Long:  "Script responsible for cleaning up iptables rules",
    		PreRunE: func(cmd *cobra.Command, args []string) error {
    			if err := log.Configure(logOpts); err != nil {
    				return err
    			}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Mar 11 17:46:23 UTC 2024
    - 3K bytes
    - Viewed (0)
  2. operator/cmd/operator/root.go

    import (
    	"flag"
    
    	"github.com/spf13/cobra"
    
    	"istio.io/istio/pkg/collateral"
    	"istio.io/istio/pkg/version"
    )
    
    // getRootCmd returns the root of the cobra command-tree.
    func getRootCmd(args []string) *cobra.Command {
    	rootCmd := &cobra.Command{
    		Use:   "operator",
    		Short: "The Istio operator.",
    		Args:  cobra.ExactArgs(0),
    		PersistentPreRunE: func(cmd *cobra.Command, args []string) error {
    			return nil
    		},
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Jan 10 03:51:36 UTC 2024
    - 1.3K bytes
    - Viewed (0)
  3. istioctl/pkg/config/config.go

    func Cmd() *cobra.Command {
    	configCmd := &cobra.Command{
    		Use:   "config SUBCOMMAND",
    		Short: "Configure istioctl defaults",
    		Args:  cobra.NoArgs,
    		Example: `  # list configuration parameters
      istioctl experimental config list`,
    	}
    	configCmd.AddCommand(listCommand())
    	return configCmd
    }
    
    func listCommand() *cobra.Command {
    	listCmd := &cobra.Command{
    		Use:   "list",
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sun Jul 30 12:16:07 UTC 2023
    - 3.1K bytes
    - Viewed (0)
  4. cmd/kubeadm/app/cmd/version.go

    }
    
    // newCmdVersion provides the version information of kubeadm.
    func newCmdVersion(out io.Writer) *cobra.Command {
    	cmd := &cobra.Command{
    		Use:   "version",
    		Short: "Print the version of kubeadm",
    		RunE: func(cmd *cobra.Command, args []string) error {
    			return RunVersion(out, cmd)
    		},
    		Args: cobra.NoArgs,
    	}
    	cmd.Flags().StringP("output", "o", "", "Output format; available options are 'yaml', 'json' and 'short'")
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Aug 17 14:40:46 UTC 2021
    - 2.3K bytes
    - Viewed (0)
  5. istioctl/cmd/options.go

    }
    
    func optionsCommand(rootCmd *cobra.Command) *cobra.Command {
    	retval := &cobra.Command{
    		Use:   "options",
    		Short: "Displays istioctl global options",
    		Args:  cobra.ExactArgs(0),
    	}
    
    	retval.SetHelpFunc(func(c *cobra.Command, args []string) {
    		c.Printf("The following options can be passed to any command:\n")
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 15 15:02:17 UTC 2023
    - 1.8K bytes
    - Viewed (0)
  6. pkg/collateral/cobra_agent.go

    import (
    	"fmt"
    
    	"github.com/spf13/cobra"
    )
    
    // cobraCommandWithFilter returns a Cobra command used to output a tool's collateral files (markdown docs, bash
    // completion & man pages). It allows passing in a set of predicates to filter out and remove items selectively.
    // The root argument must be the root command for the tool.
    func CobraCommand(root *cobra.Command, meta Metadata) *cobra.Command {
    	return &cobra.Command{
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Jan 10 03:51:36 UTC 2024
    - 1.3K bytes
    - Viewed (0)
  7. pkg/collateral/cobra_noagent.go

    package collateral
    
    import (
    	"github.com/spf13/cobra"
    	"github.com/spf13/cobra/doc"
    )
    
    // CobraCommand returns a Cobra command used to output a tool's collateral files (markdown docs, bash completion & man pages)
    // The root argument must be the root command for the tool.
    func CobraCommand(root *cobra.Command, meta Metadata) *cobra.Command {
    	hdr := &doc.GenManHeader{
    		Title:   meta.Title,
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Jan 10 03:51:36 UTC 2024
    - 2.5K bytes
    - Viewed (1)
  8. istioctl/pkg/dashboard/dashboard.go

    }
    
    func Dashboard(cliContext cli.Context) *cobra.Command {
    	dashboardCmd := &cobra.Command{
    		Use:     "dashboard",
    		Aliases: []string{"dash", "d"},
    		Short:   "Access to Istio web UIs",
    		Args: func(cmd *cobra.Command, args []string) error {
    			if len(args) != 0 {
    				return fmt.Errorf("unknown dashboard %q", args[0])
    			}
    			return nil
    		},
    		RunE: func(cmd *cobra.Command, args []string) error {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Apr 15 01:29:35 UTC 2024
    - 20.5K bytes
    - Viewed (0)
  9. staging/src/k8s.io/cli-runtime/pkg/genericclioptions/command_headers_test.go

    import (
    	"net/http"
    	"testing"
    
    	"github.com/spf13/cobra"
    )
    
    var kubectlCmd = &cobra.Command{Use: "kubectl"}
    var applyCmd = &cobra.Command{Use: "apply"}
    var createCmd = &cobra.Command{Use: "create"}
    var secretCmd = &cobra.Command{Use: "secret"}
    var genericCmd = &cobra.Command{Use: "generic"}
    var authCmd = &cobra.Command{Use: "auth"}
    var reconcileCmd = &cobra.Command{Use: "reconcile"}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Aug 20 20:34:02 UTC 2021
    - 4.6K bytes
    - Viewed (0)
  10. istioctl/pkg/admin/admin.go

    // limitations under the License.
    
    package admin
    
    import (
    	"fmt"
    
    	"github.com/spf13/cobra"
    
    	"istio.io/istio/istioctl/pkg/cli"
    )
    
    func Cmd(ctx cli.Context) *cobra.Command {
    	adminCmd := &cobra.Command{
    		Use:   "admin",
    		Short: "Manage control plane (istiod) configuration",
    		Long:  "A group of commands used to manage istiod configuration",
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 15 15:02:17 UTC 2023
    - 1.4K bytes
    - Viewed (0)
Back to top