pave

command module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2014 License: MIT Imports: 9 Imported by: 0

README

pave

wercker status Coverage Status

pave is a tiny program which provides process management and template rendering for configuration files before running processes. In addition to configuration files, each command to run a process can be used as a template. It is intended to use inside a Docker container.

pave uses Golang template language and extends following functions that can be used in a template.

  • env {{env KEY DEFAULT}}
    • Retrieves the value of the environment variable named by the KEY. If such environment variable not defined or its value is empty, DEFAULT is used.
  • ipv4 {{ipv4 KEY...}}
    • Resolve the IPv4 address suitable for given KEY. KEY is a interface name or prefix of a IP address. KEY can be specified multiple times. In this case, the first matching non-empty IP address is used.
  • ipv6 {{ipv6 KEY...}}
    • Same as ipv4 but resolves IPv6 address.

Quick start

pave -c 'echo {{env "USER"}} {{ipv4 "eth0" "en0"}}'

Usage

Usage:
  pave [OPTIONS]

Application Options:
  -f, --file=         Files to be rendered
  -c, --command=      Commands to be executed
  -r, --restart=      Restart strategy (none|always|error)
  -w, --restart-wait= Duration for restarting

Help Options:
  -h, --help          Show this help message

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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