Skip to content

Latest commit

 

History

History
30 lines (22 loc) · 473 Bytes

README.md

File metadata and controls

30 lines (22 loc) · 473 Bytes

procfile

A go package for parsing Procfile entries.

Install

go get github.com/chrismytton/procfile

Usage

package main

import (
	"fmt"
	"github.com/chrismytton/procfile"
)

func main() {
	proclist := procfile.Parse("web: bundle exec rackup\nworker: rake resque:work")
	for name, process := range proclist {
		fmt.Println(name, "command", process.Command)
		fmt.Println(name, "arguments", process.Arguments)
	}
}

Copyright (c) Chris Mytton