cmd/

directory
v18.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 18, 2025 License: MIT

README

Commands

Commands in this repository follow the OpenShift guidelines with the following differences:

  • xxxOptions structs are private. No need to export them.
  • xxxOptions structs are called just options to avoid repeating the package name.
  • Methods and fields on options are not exported.
  • Options struct constructor is newOptions - unexported and does not repeat the package name.
  • Error handling and logging/printing is done using cmd.LogAndExitOnError() in cobra.Command#Run(). Do not return the error since it will be logged using the default logger in that case, not the configured logger.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL