Skip to content

🐚 loads and asserts environment settings from dotenv files prior to executing CLI commands

License

Notifications You must be signed in to change notification settings

busterc/assert-dotenv-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

assert-dotenv-cli NPM version Build Status

loads and asserts environment settings from dotenv files prior to executing CLI commands

  • See assert-dotenv for more information about the mechanics and reasoning behind this.

Install

$ npm install --global assert-dotenv-cli

Usage

$ assert-dotenv --help

  Usage

    $ assert-dotenv [options] <command with arguments>

  Options

    --dotenv-file <file>    dotenv file to load settings
    --assert-file <file>    assert file to test settings
    --help                  shows usage help

Simple Demo

  • ~/app/.env (file contents)

    FTW=For The Win!!!
  • ~/app/assert.env (file contents)

    FTW
  • Examples

    $ cd ~/app
    
    # first, without using assert-dotenv-cli
    $ env | grep FTW
    #
    # ^ nada
    
    # then, with assert-dotenv-cli
    $ assert-dotenv env | grep FTW
    # FTW=For The Win!!!
    # ^ tada

License

ISC © Buster Collings

About

🐚 loads and asserts environment settings from dotenv files prior to executing CLI commands

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published