cmd

package
v2.3.2 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2020 License: MIT Imports: 39 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Command

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

Command wraps a github.com/traefik/paerser/cli.Command, providing an Execute method.

func New

func New(pluginBuilders map[string]traepikPlugins.PluginBuilder) (*Command, error)

New creates the root traefik command, configured with the provided plugins.

Usage:

traefikCmd, err := cmd.New(plugins)
if err != nil { ... }
traefikCmd.Execute()

func (*Command) Execute

func (c *Command) Execute() error

Execute calls github.com/traefik/paerser/cli.Execute.

Jump to

Keyboard shortcuts

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