{"modulePath":"github.com/rancher/docker-cli","version":"v0.0.0-20190201110649-896ff57b300c","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package plugin\n\n## Functions\n\n```go\nfunc PersistentPreRunE(cmd *cobra.Command, args []string) error\n```\nPersistentPreRunE 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.\n\n```go\nfunc Run(makeCmd func(command.Cli) *cobra.Command, meta manager.Metadata)\n```\nRun is the top-level entry point to the CLI plugin framework. It should be called from your plugin's \\`main()\\` function.\n\n","path":"github.com/rancher/docker-cli/cli-plugins/plugin","name":"plugin","synopsis":"","isRedistributable":true}
