Skip to content

A Cloud Foundry CLI plugin to print out information about the currently logged in user

Notifications You must be signed in to change notification settings

jtuchscherer/whoami-plugin

Repository files navigation

whoami-plugin

Build Status

Installation

Download the appropriate binary from the release tab

 cf install-plugin PATH_TO_THE_BINARY

Usage

cf whoami

Sample Output

Uninstall

cf uninstall "Whoami Plugin"

Testing

Run tests

./scripts/test.sh

If you want to install the plugin locally and test it manually

./scripts/install.sh

Releasing

In order to create a new release, follow these steps

  1. Create local tag and binaries
./scripts/build-all.sh release VERSION_NUMBER #(e.g. 0.7.0)
  1. Copy the output of the previous command from the first line (should be '- name: whoami-plugin' to the last checksum line (should be something like checksum: fde5fd52c40ea4c34330426c09c143a76a77a8db)
  2. Push the tag git push --follow-tags
  3. On github, create new release based on new tag here
  4. Upload the three binaries from the ./bin folders to the release (Linux, OSX and Win64)
  5. Fork this repo and clone it locally
  6. Edit the repo-index.yml
vi repo-index.yml

to override the existing section about the whoami plugin with the text previously copied in Step 2.

  1. Push the change to your fork
  2. Create a PR against the original repo

About

A Cloud Foundry CLI plugin to print out information about the currently logged in user

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published