pushenv

Crates.iopushenv
lib.rspushenv
version1.1.2
sourcesrc
created_at2024-05-08 09:23:37.267289
updated_at2024-05-27 11:46:34.419758
descriptionA CLI utility that reads a .env file before starting a process. Example usage: pushenv -- echo $SOME_VAR pushenv some.env.file -- echo $SOME_VAR
homepage
repositoryhttps://github.com/JensGM/pushenv
max_upload_size
id1233598
size64,210
Jens GĂ„semyr Magnus (JensGM)

documentation

README

pushenv

A CLI utility that reads a .env file before starting a process

Installation

You can install pushenv using Cargo, the Rust package manager, or by downloading a precompiled binary from the latest release.

cargo install pushenv

Example usage

Without specifying an env file

This will attempt to read the .env file in the current directory.

pushenv -- echo $SOME_VAR

Specifying an env file

You can specify an env file to read from as the first argument.

pushenv some.env.file -- echo $SOME_VAR
Commit count: 19

cargo fmt