command

package
v0.0.0-...-e70f483 Latest Latest
Warning

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

Go to latest
Published: May 21, 2026 License: Apache-2.0 Imports: 5 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package command holds command related files

Index

Constants

View Source
const LoggerName = "SECURITY"

LoggerName defines the logger name

Variables

This section is empty.

Functions

func MakeCommand

func MakeCommand(subcommandFactories []SubcommandFactory) *cobra.Command

MakeCommand makes the top-level Cobra command for this command.

Types

type GlobalParams

type GlobalParams struct {
	ConfigFilePaths      []string
	SysProbeConfFilePath string
	FleetPoliciesDirPath string

	// NoColor is a flag to disable color output
	NoColor bool
}

GlobalParams contains the values of agent-global Cobra flags.

A pointer to this type is passed to SubcommandFactory's, but its contents are not valid until Cobra calls the subcommand's Run or RunE function.

type SubcommandFactory

type SubcommandFactory func(globalParams *GlobalParams) []*cobra.Command

SubcommandFactory returns a sub-command factory

func SubcommandFactoryFromOne

func SubcommandFactoryFromOne(f func(globalParams *GlobalParams) *cobra.Command) SubcommandFactory

SubcommandFactoryFromOne converts a single-command factory into a multi-command factory

Jump to

Keyboard shortcuts

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