Name: service-instance-logs-cli-plugin
Owner: Pivotal Cloud Foundry
Description: A Cloud Foundry CLI plugin for access service instance logs
Created: 2017-05-26 18:14:01.0
Updated: 2018-04-05 20:27:55.0
Pushed: 2018-04-05 20:27:53.0
Size: 2929
Language: Go
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
This repository provides a Cloud Foundry CLI plugin for accessing the logs of service instances created by Spring Cloud Dataflow or, in the future, Spring Cloud Services.
For information on plugin development, see Developing a plugin.
To build the plugin, install go and govendor (see the Go Development guide for instructions) and issue:
$GOPATH/bin/service-instance-logs-cli-plugin
$GOPATH/src/github.com/pivotal-cf/service-instance-logs-cli-plugin
vendor install -ldflags="-X main.pluginVersion=$(cat version)" +local
This builds the plugin with the current version number in the version file.
Note: if an invalid version number is provided, the build will succeed, but the plugin will fail to install (with exit status code 64).
To print the version number of the built plugin, run it as a stand-alone executable, for example:
OPATH/bin/service-instance-logs-cli-plugin
program is a plugin which expects to be installed into the cf CLI. It is not intended to be run stand-alone.
in version: 0.0.8
To install the plugin from the Cloud Foundry Community Plugins, run the following command:
cf install-plugin -r CF-Community "Service Instance Logging"
To install the plugin in the cf
CLI from generated, first build it and then issue:
install-plugin -f $GOPATH/bin/service-instance-logs-cli-plugin
The plugin's commands may then be listed by issuing cf help
.
To update the plugin, uninstall it as follows and then re-install the plugin as above:
uninstall-plugin service-instance-logging
With the plugin installed in the cf
CLI, the Service Instance Logs CLI plugin command docs can be generated by running the following commands:
docs
generate-cli-docs-from-help.sh
The generated docs may be viewed here.
See the Go Development guide. (If you just want to build and install the plugin, simply install go and govendor.)
Run the tests as follows:
$GOPATH/src/github.com/pivotal-cf/service-instance-logs-cli-plugin
vendor test +local
The Service Instance Logs CLI plugin is Open Source software released under the Apache 2.0 license.
Contributions are welcomed. Please refer to the Contributor's Guide.