package plugin
import "github.com/docker/cli/cli-plugins/plugin"
Index ¶
- Variables
- func Run(makeCmd func(command.Cli) *cobra.Command, meta metadata.Metadata)
- func RunPlugin(dockerCli *command.DockerCli, plugin *cobra.Command, meta metadata.Metadata) error
- func RunningStandalone() bool
Variables ¶
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 `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.
Functions ¶
func Run ¶
Run is the top-level entry point to the CLI plugin framework. It should be called from your plugin's `main()` function.
func RunPlugin ¶
RunPlugin executes the specified plugin command
func RunningStandalone ¶
func RunningStandalone() bool
RunningStandalone tells a CLI plugin it is run standalone by direct execution
Source Files ¶
- Version
- v28.1.1+incompatible (latest)
- Published
- Apr 18, 2025
- Platform
- linux/amd64
- Imports
- 15 packages
- Last checked
- 1 hour ago –
Tools for package owners.