/procfmt

a Bash script that reformats a Foreman Procfile

Primary LanguageShellMIT LicenseMIT

procfmt

I'm getting totally sick of reformatting these Procfiles by hand

-- me

About

This project includes a Foreman Procfile formatter, written in Bash. It does only a few things, but these are things that were very annoying to do by hand, such as:

  1. Left-align the commands
  2. Alpha-sort the environment variables

Demo

procfmt

Requirements

This is a Bash script, and uses Bash arrays. Other than that, is has no dependencies.

Usage

$ cat Procfile | ./procfmt.sh --ignore feedbin_clock > ./Procfile.formatted