Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for runVersion (0.23 sec)

  1. cmd/kubeadm/app/cmd/version.go

    		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'")
    	return cmd
    }
    
    // RunVersion provides the version information of kubeadm in format depending on arguments
    // specified in cobra.Command.
    func RunVersion(out io.Writer, cmd *cobra.Command) error {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Aug 17 14:40:46 UTC 2021
    - 2.3K bytes
    - Viewed (0)
  2. cmd/kubeadm/app/cmd/version_test.go

    		t.Run(tc.name, func(t *testing.T) {
    			var err error
    			if len(tc.flag) > 0 {
    				if err = cmd.Flags().Set(flagNameOutput, tc.flag); err != nil {
    					goto error
    				}
    			}
    			buf.Reset()
    			if err = RunVersion(&buf, cmd); err != nil {
    				goto error
    			}
    			if buf.String() == "" {
    				err = errors.New("empty output")
    				goto error
    			}
    			if tc.shouldBeValidYAML {
    				err = yaml.Unmarshal(buf.Bytes(), &iface)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Aug 17 14:40:46 UTC 2021
    - 2.3K bytes
    - Viewed (0)
  3. testing/internal-performance-testing/src/main/groovy/org/gradle/performance/fixture/CrossVersionPerformanceTestRunner.groovy

            try {
                int runIndex = 0
                runVersion(testId, current, perVersionWorkingDirectory(runIndex++), results.current)
    
                baselineVersions.each { baselineVersion ->
                    runVersion(testId, buildContext.distribution(baselineVersion.version), perVersionWorkingDirectory(runIndex++), baselineVersion.results)
                }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 25 14:54:56 UTC 2024
    - 11.7K bytes
    - Viewed (0)
  4. src/cmd/go/internal/version/version.go

    See also: go doc runtime/debug.BuildInfo.
    `,
    }
    
    func init() {
    	base.AddChdirFlag(&CmdVersion.Flag)
    	CmdVersion.Run = runVersion // break init cycle
    }
    
    var (
    	versionM = CmdVersion.Flag.Bool("m", false, "")
    	versionV = CmdVersion.Flag.Bool("v", false, "")
    )
    
    func runVersion(ctx context.Context, cmd *base.Command, args []string) {
    	if len(args) == 0 {
    		// If any of this command's flags were passed explicitly, error
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 24 19:27:00 UTC 2023
    - 4.8K bytes
    - Viewed (0)
Back to top