Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 106 for cobra (0.04 sec)

  1. pkg/version/cobra.go

    // CobraCommand returns a command used to print version information.
    func CobraCommand() *cobra.Command {
    	return CobraCommandWithOptions(CobraOptions{})
    }
    
    // CobraCommandWithOptions returns a command used to print version information.
    // It accepts an CobraOptions argument that might modify its behavior
    func CobraCommandWithOptions(options CobraOptions) *cobra.Command {
    	var (
    		short         bool
    		output        string
    		remote        bool
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Aug 08 16:43:05 UTC 2023
    - 6.1K bytes
    - Viewed (0)
  2. pkg/collateral/cobra.go

    John Howard <******@****.***> 1704858696 -0800
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Jan 10 03:51:36 UTC 2024
    - 679 bytes
    - Viewed (0)
  3. istioctl/pkg/completion/completion.go

    		return nil, cobra.ShellCompDirectiveNoFileComp
    	}
    	return nsName, cobra.ShellCompDirectiveNoFileComp
    }
    
    func ValidServiceAccountArgs(_ *cobra.Command, ctx cli.Context, args []string, toComplete string) ([]string, cobra.ShellCompDirective) {
    	if len(args) != 0 {
    		return nil, cobra.ShellCompDirectiveNoFileComp
    	}
    	client, err := ctx.CLIClient()
    	if err != nil {
    		return nil, cobra.ShellCompDirectiveNoFileComp
    	}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sat Apr 13 05:23:38 UTC 2024
    - 4.9K bytes
    - Viewed (0)
  4. operator/cmd/mesh/operator-dump.go

    }
    
    func operatorDumpCmd(rootArgs *RootArgs, odArgs *operatorDumpArgs) *cobra.Command {
    	return &cobra.Command{
    		Use:   "dump",
    		Short: "Dumps the Istio operator controller manifest.",
    		Long:  "The dump subcommand dumps the Istio operator controller manifest.",
    		Args:  cobra.ExactArgs(0),
    		PreRunE: func(cmd *cobra.Command, args []string) error {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 23 17:08:31 UTC 2023
    - 3.6K bytes
    - Viewed (0)
  5. pkg/ctrlz/options.go

    		Port:    9876,
    		Address: "localhost",
    	}
    }
    
    // AttachCobraFlags attaches a set of Cobra flags to the given Cobra command.
    //
    // Cobra is the command-line processor that Istio uses. This command attaches
    // the necessary set of flags to expose a CLI to let the user control all
    // introspection options.
    func (o *Options) AttachCobraFlags(cmd *cobra.Command) {
    	cmd.PersistentFlags().Uint16Var(&o.Port, "ctrlz_port", o.Port,
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Apr 11 21:42:29 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  6. pilot/cmd/pilot-discovery/app/request.go

    package app
    
    import (
    	"net/http"
    	"time"
    
    	"github.com/spf13/cobra"
    
    	"istio.io/istio/pilot/pkg/request"
    )
    
    var requestCmd = &cobra.Command{
    	Use:   "request <method> <path> [<body>]",
    	Short: "Makes an HTTP request to Pilot metrics/debug endpoint",
    	Args:  cobra.MinimumNArgs(2),
    	RunE: func(c *cobra.Command, args []string) error {
    		command := &request.Command{
    			Address: "127.0.0.1:15014",
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri May 28 03:44:33 UTC 2021
    - 1.1K bytes
    - Viewed (0)
  7. 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)
  8. 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)
  9. 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)
  10. 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)
Back to top