Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for HasParent (0.34 sec)

  1. staging/src/k8s.io/cli-runtime/pkg/genericclioptions/command_headers.go

    	c.Headers[kubectlSessionHeader] = uid
    	// Iterate up the hierarchy of commands from the leaf command to create
    	// the full command string. Example: kubectl create secret generic
    	cmdStrs := []string{}
    	for cmd.HasParent() {
    		parent := cmd.Parent()
    		currName := strings.TrimSpace(cmd.Name())
    		cmdStrs = append([]string{currName}, cmdStrs...)
    		cmd = parent
    	}
    	currName := strings.TrimSpace(cmd.Name())
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jul 26 17:14:05 UTC 2022
    - 3.2K bytes
    - Viewed (0)
Back to top