spring-cloud-services-cli-plugin

command module
v1.0.25 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 11, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

README

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=$VERSION"

This builds the plugin with the given version number.

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.

Documentation

Overview

* Copyright 2016-Present the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License.

Directories

Path Synopsis
* Copyright (C) 2017-Present Pivotal Software, Inc.
* Copyright (C) 2017-Present Pivotal Software, Inc.
* Copyright (C) 2016-Present Pivotal Software, Inc.
* Copyright (C) 2016-Present Pivotal Software, Inc.
* Copyright (C) 2016-Present Pivotal Software, Inc.
* Copyright (C) 2016-Present Pivotal Software, Inc.
* Copyright (C) 2016-Present Pivotal Software, Inc.
* Copyright (C) 2016-Present Pivotal Software, Inc.
* Copyright (C) 2016-Present Pivotal Software, Inc.
* Copyright (C) 2016-Present Pivotal Software, Inc.
httpclientfakes
Code generated by counterfeiter.
Code generated by counterfeiter.
* Copyright (C) 2017-Present Pivotal Software, Inc.
* Copyright (C) 2017-Present Pivotal Software, Inc.
instancefakes
Code generated by counterfeiter.
Code generated by counterfeiter.
* Copyright (C) 2017-Present Pivotal Software, Inc.
* Copyright (C) 2017-Present Pivotal Software, Inc.
serviceutilfakes
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL