Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Hi Dan, I’d like to introduce a cli executable which would work similar to (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:closed
  • Created 3 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

falkenhawkcommented, Jun 26, 2020
kerimdzhanovcommented, Jun 26, 2020

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 the dotenv 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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found