Create a configured get-dotenv CLI host.
Applies defaults, installs root hooks, and composes plugins.
Returns a runner function that accepts an argv array.
The runner's argv is the user arguments only, as in
run(['-e', 'dev', 'cmd', 'npm', 'test']), unless its second parameter
gives Commander's from: run(process.argv, { from: 'node' }) drops the
first two entries. Called without an argv it reads process.argv and
detects the convention as Commander does (node -e/-p, Electron).
Create a configured get-dotenv CLI host. Applies defaults, installs root hooks, and composes plugins. Returns a runner function that accepts an argv array.
The runner's argv is the user arguments only, as in
run(['-e', 'dev', 'cmd', 'npm', 'test']), unless its second parameter gives Commander'sfrom:run(process.argv, { from: 'node' })drops the first two entries. Called without an argv it readsprocess.argvand detects the convention as Commander does (node -e/-p, Electron).