{"modulePath":"github.com/dOcker/cli","version":"v29.10.1+incompatible","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package plugin\n\n## Variables\n\n```go\nvar PersistentPreRunE func(*cobra.Command, []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 \\`PersistentPreRunE\\` to enable the error to be returned. Should not be called outside of a command's PersistentPreRunE hook and must not be run unless Run has been called.\n\n## Functions\n\n```go\nfunc Run(makeCmd func(command.Cli) *cobra.Command, meta metadata.Metadata, ops ...command.CLIOption)\n```\nRun is the top-level entry point to the CLI plugin framework. It should be called from the plugin's \"main()\" function. It initializes a new [command.DockerCli](/github.com/docker/cli/cli/command#DockerCli) instance with the given options before calling makeCmd to construct the plugin command, then invokes the plugin command using [RunPlugin](#RunPlugin).\n\n```go\nfunc RunPlugin(dockerCli *command.DockerCli, plugin *cobra.Command, meta metadata.Metadata) error\n```\nRunPlugin executes the specified plugin command\n\n```go\nfunc RunningStandalone() bool\n```\nRunningStandalone tells a CLI plugin it is run standalone by direct execution\n\n","path":"github.com/dOcker/cli/cli-plugins/plugin","name":"plugin","synopsis":"","isRedistributable":true}
