Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for adjustCommand (0.1 sec)

  1. pkg/kube/util.go

    	if err != nil {
    		return nil, err
    	}
    
    	for _, fn := range fns {
    		fn(config)
    	}
    
    	return config, nil
    }
    
    // adjustCommand returns the last component of the
    // OS-specific command path for use in User-Agent.
    func adjustCommand(p string) string {
    	// Unlikely, but better than returning "".
    	if len(p) == 0 {
    		return "unknown"
    	}
    	return filepath.Base(p)
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 06 05:10:23 UTC 2024
    - 18.6K bytes
    - Viewed (0)
Back to top