Help us shape the future of Go! Take the 2026 Go Developer Survey

common

package
v7.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2026 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var GlobalFlags = append([]cli.Flag{
	&cli.StringFlag{
		Sources: cli.EnvVars("CROW_CONFIG", "WOODPECKER_CONFIG"),
		Name:    "config",
		Aliases: []string{"c"},
		Usage:   "path to config file",
	},
	&cli.StringFlag{
		Sources: cli.EnvVars("CROW_SERVER", "WOODPECKER_SERVER"),
		Name:    "server",
		Aliases: []string{"s"},
		Usage:   "server address",
	},
	&cli.StringFlag{
		Sources: cli.EnvVars("CROW_TOKEN", "WOODPECKER_TOKEN"),
		Name:    "token",
		Aliases: []string{"t"},
		Usage:   "server auth token",
	},
	&cli.BoolFlag{
		Sources: cli.EnvVars("CROW_DISABLE_UPDATE_CHECK", "WOODPECKER_DISABLE_UPDATE_CHECK"),
		Name:    "disable-update-check",
		Usage:   "disable update check",
	},
	&cli.BoolFlag{
		Sources: cli.EnvVars("CROW_SKIP_VERIFY", "WOODPECKER_SKIP_VERIFY"),
		Name:    "skip-verify",
		Usage:   "skip ssl verification",
	},
	&cli.StringFlag{
		Sources: cli.EnvVars("SOCKS_PROXY"),
		Name:    "socks-proxy",
		Usage:   "socks proxy address",
	},
	&cli.BoolFlag{
		Sources: cli.EnvVars("SOCKS_PROXY_OFF"),
		Name:    "socks-proxy-off",
		Usage:   "socks proxy ignored",
	},
}, logger.GlobalLoggerFlags...)
View Source
var OrgFlag = &cli.StringFlag{
	Name:    "organization",
	Aliases: []string{"org"},
	Usage:   "organization id or full name (e.g. 123 or octocat)",
}
View Source
var RepoFlag = &cli.StringFlag{
	Name:    "repository",
	Aliases: []string{"repo"},
	Usage:   "repository id or full name (e.g. 134 or octocat/hello-world)",
}

Functions

func After

func After(_ context.Context, _ *cli.Command) error

func Before

func Before(ctx context.Context, c *cli.Command) (context.Context, error)

func DetectPipelineConfig

func DetectPipelineConfig() (isDir bool, config string, _ error)

func FormatFlag

func FormatFlag(tmpl string, deprecated bool, hidden ...bool) *cli.StringFlag

FormatFlag return format flag with value set based on template if hidden value is set, flag will be hidden.

func LoadSiblingFiles

func LoadSiblingFiles(dir, excludeFile string) ([]*crow_jsonnet.File, error)

LoadSiblingFiles reads .libsonnet and .jsonnet files from the directory for use as Jsonnet imports.

func OutputFlags

func OutputFlags(def string) []cli.Flag

OutputFlags returns a slice of cli.Flag containing output format options. Supported formats: table, json, yaml, go-template=<template>.

func RunPipelineFunc

func RunPipelineFunc(ctx context.Context, c *cli.Command, fileFunc, dirFunc func(context.Context, *cli.Command, string) error) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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