Go here for documentation of the plugin API
GetApp
now returnsPath
andPort
information.
- API
LoggregatorEndpoint()
is deprecated and now always returns the empty string. UseDopplerEndpoint()
instead to obtain logs.
-v
is now a global flag to enable verbose logging of API calls, equivalent toCF_TRACE=true
. This means that the-v
flag will no longer be passed to plugins.
- API
AccessToken()
now provides a refreshed o-auth token. - Examples on how to use fake
CliConnection
and test RPC server for TDD development. - Fix Plugin API file descriptors leakage.
- Fix bug where some CLI versions does not respect
PluginMetadata.MinCliVersion
. - The field
PackageUpdatedAt
returned byGetApp()
API is now populated.
- New API:
GetApp(string) (plugin_models.GetAppModel, error)
GetApps() ([]plugin_models.GetAppsModel, error)
GetOrgs() ([]plugin_models.GetOrgs_Model, error)
GetSpaces() ([]plugin_models.GetSpaces_Model, error)
GetOrgUsers(string, ...string) ([]plugin_models.GetOrgUsers_Model, error)
GetSpaceUsers(string, string) ([]plugin_models.GetSpaceUsers_Model, error)
GetServices() ([]plugin_models.GetServices_Model, error)
GetService(string) (plugin_models.GetService_Model, error)
GetOrg(string) (plugin_models.GetOrg_Model, error)
GetSpace(string) (plugin_models.GetSpace_Model, error)
- Allow minimum CLI version required to be specified in plugin. Example:
func (c *cmd) GetMetadata() plugin.PluginMetadata {
return plugin.PluginMetadata{
Name: "Test1",
MinCliVersion: plugin.VersionType{
Major: 6,
Minor: 12,
Build: 0,
},
}
}
Added the following commands to cli_connection.go:
- GetCurrentOrg()
- GetCurrentSpace()
- Username()
- UserEmail()
- UserGuid()
- HasOrganization()
- HasSpace()
- IsLoggedIn()
- IsSSLDisabled()
- ApiEndpoint()
- HasAPIEndpoint()
- ApiVersion()
- LoggregatorEndpoint()
- DopplerEndpoint()
- AccessToken()
- Plugins now have a hook-in that is called when the plugin is uninstalled, allowing cleanup of files.
CF-Community Plugin Repository introduced.
- Plugin developers can submit any open-source plugins
- Plugins in the community repo can be browsed and installed from the CLI
- Plugins can now have versions, i.e. 1.2.3, code example
cf plugins
now displays plugin versions-h
and--help
flags work with plugin commands. e.g.cf <plugin-command> -h
. code example- Allow
cf help <plugin-command>
- Plugin commands can now have aliases
- Help text for plugins now listed in 'cf plugins'
- Plugins introduced