Skip to content

chrismytton/procfile

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Packages

No packages published

Languages