Documentation ¶
Overview ¶
Package lint provides linters to run against CLI plugins.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CobraLintRunner ¶
type CobraLintRunner struct {
// contains filtered or unexported fields
}
CobraLintRunner lints cobra commands and reports results.
func NewCobraLinter ¶
func NewCobraLinter(cmd *cobra.Command) (*CobraLintRunner, error)
NewCobraLinter returns an instance of CobraLintRunner.
func (*CobraLintRunner) Output ¶
func (c *CobraLintRunner) Output()
Output writes the results of linting in a table form.
func (*CobraLintRunner) Run ¶
func (c *CobraLintRunner) Run() bool
Run runs the linter and reports success or failure.
type TKGFlags ¶
type TKGFlags struct {
// contains filtered or unexported fields
}
TKGFlags analyzes local and persistent commands.
Click to show internal directories.
Click to hide internal directories.