Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Parse Procfiles in go without yaml

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 MIT-LICENSE
Octocat-spinner-32 README.md
Octocat-spinner-32 procfile.go
Octocat-spinner-32 procfile_test.go
README.md

procfile

A go package for parsing Procfile entries.

Install

go get github.com/hecticjeff/procfile

Usage

package main

import (
    "fmt"
    "github.com/hecticjeff/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

Something went wrong with that request. Please try again.