bufbuild / buf

The best way of working with Protocol Buffers.
https://buf.build
Apache License 2.0
9.22k stars 279 forks source link

Add `buf plugin push` command #3474

Open emcfarlane opened 1 week ago

emcfarlane commented 1 week ago

This adds the buf plugin push command to upload Buf plugins to the BSR. Plugins must implement the PluginRPC framework. See the Buf plugins overview for details. The Plugin must be a WebAssembly binary, that implements the check service.

The output for buf plugin push --help:

Push a plugin to a registry

The first argument is the plugin full name in the format <remote/owner/plugin>.

Usage:
  buf plugin push <remote/owner/plugin> [flags]

Flags:
      --binary string               The path to the Wasm binary file to push.
      --create                      Create the plugin if it does not exist. Defaults to creating a private repository if --create-visibility is not set. Must be used with --create-type.
      --create-type string          The plugin's type setting, if created. Can only be set with --create-type. Must be one of [check]
      --create-visibility string    The module's visibility setting, if created. Can only be set with --create. Must be one of [public,private] (default "private")
  -h, --help                        help for push
      --label strings               Associate the label with the plugins pushed. Can be used multiple times.
      --source-control-url string   The URL for viewing the source code of the pushed plugins (e.g. the specific commit in source control).
github-actions[bot] commented 1 week ago

The latest Buf updates on your PR. Results from workflow Buf CI / buf (pull_request).

BuildFormatLintBreakingUpdated (UTC)
✅ passed✅ passed✅ passed✅ passedNov 27, 2024, 12:26 AM