code: func Run(makeCmd func(command.Cli) *cobra.Command, meta manager.Metadata) {
  	dockerCli, err := command.NewDockerCli()
  	if err != nil {
  		fmt.Fprintln(os.Stderr, err)
  		os.Exit(1)
  	}
  
  	plugin := makeCmd(dockerCli)
  
  	if err := runPlugin(dockerCli, plugin, meta); err != nil {
  		if sterr, ok := err.(cli.StatusError); ok {
  			if sterr.Status != "" {
  				fmt.Fprintln(dockerCli.Err(), sterr.Status)
  			}
  			// StatusError should only be used for errors, and all errors should
  			// have a non-zero exit status, so never exit with 0
  			if sterr.StatusCode == 0 {
  				os.Exit(1)
  			}
  			os.Exit(sterr.StatusCode)
  		}
  		fmt.Fprintln(dockerCli.Err(), err)
  		os.Exit(1)
  	}
  }
docs: // Run is the top-level entry point to the CLI plugin framework. It should be called from your plugin's `main()` function.