cmds

package
v0.54.0 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2026 License: Apache-2.0 Imports: 15 Imported by: 2 modules, 1 package

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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Description

func Description(name string) string

func RegisterLoggingConfigHandler

func RegisterLoggingConfigHandler(h LoggingHandler)

RegisterLoggingConfigHandler is used to register a configuration handler for logging configuration passed by the OCM library. If standard mandelsoft logging is used, it can be adapted by adding the ananymous import of the ppi/logging package.

Types

type Error

type Error struct {
	Error string `json:"error"`
}

type LoggingConfiguration

type LoggingConfiguration struct {
	LogFileName string          `json:"logFileName"`
	LogConfig   json.RawMessage `json:"logConfig"`
	Json        bool            `json:"json,omitempty"`
}

LoggingConfiguration describes logging configuration for a slave executables like plugins. If mandelsoft logging is used please use ocm.software/ocm/api/utils/cobrautils/logging.LoggingConfiguration, instead.

type LoggingHandler

type LoggingHandler interface {
	HandleConfig(data []byte) error
}

type PluginCommand

type PluginCommand struct {
	// contains filtered or unexported fields
}

func NewPluginCommand

func NewPluginCommand(p ppi.Plugin) *PluginCommand

func (*PluginCommand) Command

func (p *PluginCommand) Command() *cobra.Command

func (*PluginCommand) Execute

func (p *PluginCommand) Execute(args []string) error

func (*PluginCommand) PreRunE

func (p *PluginCommand) PreRunE(cmd *cobra.Command, args []string) error

Jump to

Keyboard shortcuts

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