plugin

package
v0.0.0-...-896ff57 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2019 License: Apache-2.0 Imports: 10 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PersistentPreRunE

func PersistentPreRunE(cmd *cobra.Command, args []string) error

PersistentPreRunE must be called by any plugin command (or subcommand) which uses the cobra `PersistentPreRun*` hook. Plugins which do not make use of `PersistentPreRun*` do not need to call this (although it remains safe to do so). Plugins are recommended to use `PersistenPreRunE` to enable the error to be returned. Should not be called outside of a commands PersistentPreRunE hook and must not be run unless Run has been called.

func Run

func Run(makeCmd func(command.Cli) *cobra.Command, meta manager.Metadata)

Run is the top-level entry point to the CLI plugin framework. It should be called from your plugin's `main()` function.

Types

This section is empty.

Jump to

Keyboard shortcuts

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