Conversation
|
Initial observations...
|
I wonder if we should normalize the version string coming in and cast to lowercase. I also wonder if we should just drop anything after the last number, like we do in the ES version checker. |
|
When running I think it's trying to show the default usage syntax but failing. |
src/cli_plugin/cli.js
Outdated
There was a problem hiding this comment.
I believe with the move to ES6 modules, we've gotten rid of require statements on client and server code now. If I'm right, you should be using import instead of require here, and elsewhere.
|
The file permissions on |
|
jenkins, test it |
29cbbd7 to
91cce98
Compare
| import removeCommand from './remove'; | ||
|
|
||
| let argv = process.env.kbnWorkerArgv ? JSON.parse(process.env.kbnWorkerArgv) : process.argv.slice(); | ||
| let program = new Command('bin/kibana-plugin'); |
There was a problem hiding this comment.
I think this should be const
There was a problem hiding this comment.
The focus of my changes on this file were removing existing functionality from it. I didn't rewrite this file, so I didn't focus on it as a whole. Despite this, I'll make your suggested change.
|
One thing I wanted to note: the size of this pull request makes it really difficult to review effectively. You broke up the PR description into 5 different categories of changes - I'd recommend 5 different pull requests in the future. |
2307095 to
d65e7be
Compare
This will require hacking on the Command module we use for the cli. Opened #6577 to address this. |
f9b46b0 to
cbfcd56
Compare
src/cli_plugin/cli.js
Outdated
| @@ -0,0 +1,43 @@ | |||
| import _ from 'lodash'; | |||
| import pkg from '../utils/package_json'; | |||
| import Command from '../cli/Command'; | |||
There was a problem hiding this comment.
This has to be lowercase - ../cli/command
|
With that last fix, the installer is now fully functional. LGTM! |
|
Is it intentional to allow people to install over existing plugins (without removing them first)? |
|
Err, nevermind. It failed eventually. |
|
LGTM |
resolves #5761
Plugin pack installer for kibana
modified existing entry point
Removed the plugin commands from the ./bin/kibana entry point
new entry point
All plugin commands are now executed from the
./bin/kibana-pluginentry point:List command changes
Remove command changes
Install command changes
<plugin>specifiedhttps://download.elastic.co/packs/<plugin>/<plugin>-<kibana version>.zip