-
Notifications
You must be signed in to change notification settings - Fork 154
feat : cli syncs yaml plugins from server #530
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Pull Request Test Coverage Report for Build 2947776163
💛 - Coveralls |
plugin/plugin_manager.go
Outdated
| } | ||
|
|
||
| func (p *PluginManager) Install(dst string, sources ...string) error { | ||
| // p.preCleanUp(dst) -- TODO: after making plugin discovery static |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove comment
cmd/plugin/sync.go
Outdated
| } | ||
|
|
||
| func (s *syncCommand) downloadArchiveFromServer() error { | ||
| optimusServerURL := fmt.Sprintf("http://%s/%s", s.clientConfig.Host, "plugins") // will url work ? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@sbchaos can we rely on this url format ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can the host include the scheme ? if we need to support https or ftp path, this will be restrictive.
Just append path plugins to the Host if we can accept it along with scheme.
bc7ae92 to
cb7fd66
Compare
1ebcfa2 to
7a10fe0
Compare
plugin/plugin_manager.go
Outdated
| return nil | ||
| } | ||
|
|
||
| func SanitizeArchivePath(d, t string) (v string, err error) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why are we using this function outside this module ? if not it should start with lowercase letter
…s on client side(#452) * add YamlPlugin * add yamlMod in models.Plugin * fix plugin fallback (first bin else yaml) * add default assets in yaml plugin * add validations * add default config * add sortplugins; dir (.plugins); migratePlugins * fix: lint, remove yamlpluginrepo * add DefaultConfig, fix lint, sort plugin multiselect in survey * add validations, remove defaultconfig * add job hook from yaml * add plugin validation (init & model) * fix lint * add defaultconfig; log yaml plugin in validation * refactor pluginMod; make validations strict * refactor and add tests * add/fix tests * fix lint * add version override in yaml; add review changes * review changes * fix rebase * fix : feedback * feat : cli syncs yaml plugins from server (#530) * refactor cmd/plugin * add client sync feature; refactor plugin manager to plugin pkg * fix lint; sync&cleanup issue * make plugin discovery static (both client and server) * fix : feedback * fix : feedback * fix : url formatting for downloading plugins * fix: remove pluginversion override; --print; and IYamlmod naming * fix: remove pluginversion override; --print; and IYamlmod naming (#554) * fix error on sync without project * minor display fix in cmd * exit with status 1 on plugin validation
Changes:
yaml-plugins.zip) containing all yaml pluginsand cli downloads the zip from server
http://{{host}}/pluginsoptimus plugin sync -c optimus.yamlplugin discovery is static -fix : backward compatibility in loading yaml plugins #567.plugins(for client and server)Implementation Details: