sethvargo / envjector

Exec a subprocess with an environment specified in a file. Like env, but a single static binary across multiple operating systems.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Envjector

A small, single static binary for populating an environment from a file and executing a child process with that environment.

Usage

$ envjector -file /path/to/envfile -- myapp

FAQ

How is this different than env(1)?
In functionality, its quite similar. env(1) probably has more functionality related to changing directories and signal handling. Unlike env(1), envjector is a single static binary with builds for Linux, Darwin, and Windows. Envjector accepts an environment file, and uses execve(2) to call the process instead of monitoring it as a child.

About

Exec a subprocess with an environment specified in a file. Like env, but a single static binary across multiple operating systems.


Languages

Language:Go 68.4%Language:Dockerfile 18.7%Language:Makefile 12.9%