hammer

command module
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2019 License: Apache-2.0 Imports: 14 Imported by: 0

README

hammer - wrapper CLI for interacting with PCF environments

Build Status

Installation

The latest build of the hammer cli is available from the releases page. Download the tar for your platform, untar it, and move it to your $PATH.

Alternatively you can build hammer from source if you have Go:

$ git clone git@github.com:pivotal/hammer.git && cd hammer && go install

Config

In order to run the hammer tool against a given environment you need to have an environment config file in the following format:

{
  "name": "ENVIRONMENT-NAME",
  "ops_manager": {
    "url": "OPSMAN-FQDN",
    "username": "OPSMAN-USERNAME",
    "password": "OPSMAN-PASSWORD"
  },
  "ops_manager_private_key": "OPSMAN-RSA-PRIVATE-KEY",
  "ops_manager_public_ip": "OPSMAN-PUBLIC-IP",
  "sys_domain": "PAS-SYSTEM-DOMAIN",
  "pks_api":  {
     "url": "PKS-API-FQDN"
  }
}

This file can then be passed into the tool via hammer -t path-to-env-config.json <command>.

NB: sys_domain and pks_api.url are only needed for using hammer cf-login and hammer pks-login respectively.

Development

Unit and integration tests can be run if you have Ginkgo installed:

$ ginkgo -r .

Linters can also be run using golangci-lint:

$ golangci-lint run

Special thanks to @blgm for letting an internal tool he created serve as the basis for this tool.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
commandsfakes
Code generated by counterfeiter.
Code generated by counterfeiter.
scriptingfakes
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