cf-run-and-wait

command module
v0.0.0-...-94fb1a9 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2020 License: MIT Imports: 14 Imported by: 0

README

cf-run-and-wait

CloudFoundry CLI plugin to run a task, and wait for it to complete.

Installing

git clone https://github.com/govau/cf-run-and-wait
cd cf-run-and-wait
go build -o run-and-wait
cf install-plugin ./run-and-wait

Running a task

cf run-and-wait appname "echo foo"

If successful, will exit with status code of 0.

If it fails, will print some debug info, and exit with non-zero status code.

Logs will be streamed while it runs.

Building a new release

PLUGIN_NAME=run-and-wait

GOOS=linux   GOARCH=amd64   go build -o ${PLUGIN_NAME}.linux64
GOOS=linux   GOARCH=386     go build -o ${PLUGIN_NAME}.linux32
GOOS=windows GOARCH=amd64   go build -o ${PLUGIN_NAME}.win64
GOOS=windows GOARCH=386     go build -o ${PLUGIN_NAME}.win32
GOOS=darwin  GOARCH=amd64   go build -o ${PLUGIN_NAME}.osx

shasum -a 1 ${PLUGIN_NAME}.linux64
shasum -a 1 ${PLUGIN_NAME}.linux32
shasum -a 1 ${PLUGIN_NAME}.win64
shasum -a 1 ${PLUGIN_NAME}.win32
shasum -a 1 ${PLUGIN_NAME}.osx

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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