commandadapter

package
v1.3.8 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2019 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ResolveAlias

func ResolveAlias(alias string) (string, error)

ResolveAlias lookup "team.alias.<alias>" globally

func ResolveAliases

func ResolveAliases(aliases []string) ([]string, []error)

ResolveAliases convenience function to resolve multiple aliases and accumulate errors

func Run

func Run(policy policy.Policy, adapter func(events.Event) []effects.Effect) func(c *kingpin.ParseContext) error

Run apply a policy and convert the resulting event(s) to effects

Types

type CommandRoot

type CommandRoot interface {
	Command(string, string) *kingpin.CmdClause
}

CommandRoot kingpin application or command

Jump to

Keyboard shortcuts

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