Skip to content

govau/cf-report-disk-usage

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cf-report-disk-usage

CloudFoundry CLI plugin report on disk usage vs requested in a CloudFoundry installation

Usage

cf report-disk-usage

Development

go install . && \
    cf install-plugin ${GOPATH:-$HOME/go}/bin/cf-report-disk-usage -f && \
    cf report-disk-usage

Building a new release

PLUGIN_PATH=${GOPATH:-$HOME/go}/src/github.com/govau/cf-report-disk-usage
PLUGIN_NAME=$(basename $PLUGIN_PATH)

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

shasum -a 1 ${PLUGIN_NAME}.*