cli executable
See original GitHub issueHi Dan,
I’d like to introduce a cli executable which would work similar to https://www.npmjs.com/package/dotenv-cli (calling a command from the argv after setting ENV), but load dotenv-flow internally and possibly those -e
and -p
options.
My use case: calling k6 from cli with dotenv-flow k6 -- run load-tests.js
It would be a simple script, but will probably come with additional dependencies (cross-spawn
and minimist
, …and maybe, just maybe dotenv-expand
🤔 although I personally don’t need it atm)
Would you prefer to have it as a separate package dotenv-flow-cli
or rather integrated into this repo? Maybe you have an idea how to do it better - with less or no dependencies? (to keep the zero-dependency policy)
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (6 by maintainers)
Top Results From Across the Web
Command-line interface - Wikipedia
A command-line interpreter or command-line processor uses a command-line interface (CLI) to receive commands from a user in the form of lines of...
Read more >Let's Build a CLI | Command Line Interface Tutorial by ...
To start, when we say "CLI" or "command line utility," we're talking about a program that ... We can mark our script as...
Read more >Executable Command Line in Dart! - Medium
How we can make executable command line app in dart? To answer this, we will create one very simple cool command line that...
Read more >Command Line Interface — Presto 0.278.1 Documentation
The CLI is a self-executing JAR file, which means it acts like a normal UNIX executable. Download presto-cli-0.278.1-executable.jar, rename it to presto ...
Read more >executable-cli - npm
Check if a file is executable. Latest version: 1.2.0, last published: 6 years ago. Start using executable-cli in your project by running ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Package published: https://www.npmjs.com/package/dotenv-flow-cli
Hi Maciej,
Sounds good! I think it would be better to have a separate package, and that’s why:
I want to keep
dotenv-flow
as lightweight as possible. Actually, I was planning to remove thedotenv
module from dependencies, implementing the.parse()
method as a part of this module, thus making it really zero-dependent.As for the executable like
dotenv-cli
, I think it’s not possible (at least not reasonable) to implement it without adding some dependencies.