cmds

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Description

func Description(name string) string

func RegisterLoggingConfigHandler added in v0.12.0

func RegisterLoggingConfigHandler(h LoggingHandler)

RegisterLoggingConfigHandler is used to register a configuration handler for logging configration 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 added in v0.12.0

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 github.com/open-component-model/ocm/pkg/cobrautils/logging.LoggingConfiguration, instead.

type LoggingHandler added in v0.12.0

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 added in v0.12.0

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