go-client icon indicating copy to clipboard operation
go-client copied to clipboard

Automate manifest generation

Open garyburd opened this issue 8 years ago • 2 comments

Plugin authors generate a plugin manifest using the following steps:

  1. Build the plugin application using go, gb or some other development tool.
  2. Run the application with the --manifest=hostName command line flag to print a manifest.
  3. Add the the manifest to a .vim file (example).

These steps must be repeated every time the plugin handler registrations are changed.

This process should be automated in some way. Possible options are:

  • Modify the plugin application to update a .vim file directly instead of printing the manifest to stdout.
  • Create a go generate tool for updating manifests.
  • Modify :UpdateRemotePlugins to work with compiled executables.

garyburd avatar Sep 27 '16 15:09 garyburd

Here's one possible workflow for users:

  1. User adds the plugin binary to $PATH. The go get command is one way to do this.
  2. User adds line to init.vim to register binary: remote#host#RegisterExecutable('mycommand')
  3. User runs :UpdateRemotePlugins

This workflow requires the addition of RegisterExecutable and modification of remote#host#UpdateRemotePlugins.

garyburd avatar Oct 17 '16 15:10 garyburd

was this addressed by https://github.com/neovim/go-client/pull/25 ?

justinmk avatar Dec 01 '18 03:12 justinmk