Giter Site home page Giter Site logo

kvmw / spring-cloud-services-cli-plugin Goto Github PK

View Code? Open in Web Editor NEW

This project forked from pivotal-cf/spring-cloud-services-cli-plugin

0.0 0.0 0.0 1.97 MB

A Cloud Foundry CLI plugin for Spring Cloud Services

License: Apache License 2.0

Shell 0.84% Go 99.16%

spring-cloud-services-cli-plugin's Introduction

Spring Cloud Services CLI Plugin

This repository provides a Cloud Foundry CLI plugin for Spring Cloud Services.

For information on plugin development, see Developing a plugin.

Building

To build the plugin, run:

$ rm $GOPATH/bin/spring-cloud-services-cli-plugin
$ cd spring-cloud-services-cli-plugin
$ go install -ldflags="-X main.pluginVersion=$(cat version)"

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:

$ $GOPATH/bin/spring-cloud-services-cli-plugin
This program is a plugin which expects to be installed into the cf CLI. It is not intended to be run stand-alone.
Plugin version: 0.0.8

Installing

To install the plugin in the cf CLI, first build it and then issue:

$ cf install-plugin -f $GOPATH/bin/spring-cloud-services-cli-plugin

You can also install the plugin from the Cloud Foundry cf-cli plugins repository:

$ cf install-plugin -r CF-Community "spring-cloud-services"

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:

$ cf uninstall-plugin spring-cloud-services

Command docs

The Spring Cloud Services CLI plugin command docs can be generated by running the following commands:

$ cd docs
$ ./generate-cli-docs-from-help.bash

This needs to be done whenever commands are added, modified, or deleted. Note that the script contains a list of commands which needs to be kept in step with the available commands.

The generated docs may be viewed here.

Testing

First install Ginkgo.

Run the tests as follows:

$ cd spring-cloud-services-cli-plugin
$ ginkgo -r

License

The Spring Cloud Services CLI plugin is Open Source software released under the Apache 2.0 license.

Contributing

Contributions are welcomed. Please refer to the Contributor's Guide.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.