github.com/rakutentech/cli@v6.12.5-0.20151006231303-24468b65536e+incompatible/plugin_examples/CHANGELOG.md (about)

     1  [Go here for documentation of the plugin API](https://github.com/cloudfoundry/cli/blob/master/plugin_examples/DOC.md)
     2  
     3  # Changes in v6.12.0
     4  - New API:
     5  ```go
     6  GetApp(string) (plugin_models.GetAppModel, error)
     7  GetApps() ([]plugin_models.GetAppsModel, error)
     8  GetOrgs() ([]plugin_models.GetOrgs_Model, error)
     9  GetSpaces() ([]plugin_models.GetSpaces_Model, error)
    10  GetOrgUsers(string, ...string) ([]plugin_models.GetOrgUsers_Model, error)
    11  GetSpaceUsers(string, string) ([]plugin_models.GetSpaceUsers_Model, error)
    12  GetServices() ([]plugin_models.GetServices_Model, error)
    13  GetService(string) (plugin_models.GetService_Model, error)
    14  GetOrg(string) (plugin_models.GetOrg_Model, error)
    15  GetSpace(string) (plugin_models.GetSpace_Model, error)
    16  ```
    17  - Allow minimum CLI version required to be specified in plugin. Example:
    18  ```go
    19  func (c *cmd) GetMetadata() plugin.PluginMetadata {
    20  	return plugin.PluginMetadata{
    21  		Name: "Test1",
    22  		MinCliVersion: plugin.VersionType{
    23  			Major: 6,
    24  			Minor: 12,
    25  			Build: 0,
    26  		},
    27  	}
    28  }
    29  ```
    30  
    31  # Changes in v6.11.2
    32  Added the following commands to cli_connection.go:
    33  ```go
    34    - GetCurrentOrg()  
    35    - GetCurrentSpace()  
    36    - Username()  
    37    - UserEmail()  
    38    - UserGuid()  
    39    - HasOrganization()  
    40    - HasSpace()  
    41    - IsLoggedIn()  
    42    - IsSSLDisabled()  
    43    - ApiEndpoint()  
    44    - HasAPIEndpoint()  
    45    - ApiVersion()  
    46    - LoggregatorEndpoint()  
    47    - DopplerEndpoint()  
    48    - AccessToken()  
    49  ```
    50  
    51  # Changes in v6.11.0
    52  -Plugins now have a hook-in that is called when the plugin is uninstalled, allowing cleanup of files.
    53  
    54  # Changes in v6.10.0
    55  [CF-Community Plugin Repository](https://github.com/cloudfoundry-incubator/cli-plugin-repo) introduced.
    56  - Plugin developers can submit any open-source plugins 
    57  - Plugins in the community repo can be browsed and installed from the CLI
    58  
    59  # Changes in v6.9.0
    60  - Plugins can now have versions, i.e. 1.2.3, [code example](https://github.com/cloudfoundry/cli/blob/master/plugin_examples/basic_plugin.go)
    61  - `cf plugins` now displays plugin versions
    62  - `-h` and `--help` flags work with plugin commands. e.g. `cf <plugin-command> -h`. [code example](https://github.com/cloudfoundry/cli/blob/master/plugin_examples/echo.go)
    63  - Allow `cf help <plugin-command>`
    64  
    65  # Changes in v6.8.0
    66  - Plugin commands can now have aliases
    67  - Help text for plugins now listed in 'cf plugins'
    68  
    69  # Changes in v6.7.0
    70  - Plugins introduced