env_printer_plugin

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EnvPluginResultShareHost = "PLUGIN_RESULT_SHARE_HOST"

	NamePluginDebug   = "config.debug"
	EnvPluginTimeOut  = "PLUGIN_TIMEOUT_SECOND"
	NamePluginTimeOut = "config.timeout_second"

	EnvPrinterPaddingLeftMax  = "PLUGIN_ENV_PRINTER_PADDING_LEFT_MAX"
	NamePrinterPaddingLeftMax = "config.env_printer_padding_left_max"

	EnvPrinterPrintKeys  = "PLUGIN_ENV_PRINTER_PRINT_KEYS"
	NamePrinterPrintKeys = "config.env_printer_print_keys"
)

Variables

This section is empty.

Functions

func CommonFlag

func CommonFlag() []cli.Flag

CommonFlag Other modules also have flags

func Flag

func Flag() []cli.Flag

Flag set flag at here

func HideFlag

func HideFlag() []cli.Flag

HideFlag set env_printer_plugin hide flag at here

func IsBuildDebugOpen added in v1.2.0

func IsBuildDebugOpen(c *cli.Context) bool

IsBuildDebugOpen when config or drone build open debug will open debug

Types

type Config

type Config struct {
	EnvPrintKeys   []string
	PaddingLeftMax int

	Debug bool

	TimeoutSecond uint
}

Config env_printer_plugin private config

type Plugin

type Plugin struct {
	Name    string
	Version string
	Drone   drone_info.Drone
	Config  Config
}

Plugin env_printer_plugin all config

func BindCliFlag

func BindCliFlag(c *cli.Context, cliVersion, cliName string, drone drone_info.Drone) (*Plugin, error)

BindCliFlag check args here

func (*Plugin) CleanResultEnv

func (p *Plugin) CleanResultEnv() error

func (*Plugin) Exec

func (p *Plugin) Exec() error

Jump to

Keyboard shortcuts

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