@karmaniverous/get-dotenv 5.2.1 → 5.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/getdotenv.cli.mjs +0 -30
- package/dist/index.cjs +0 -30
- package/dist/index.mjs +0 -30
- package/dist/plugins-cmd.cjs +2501 -0
- package/dist/plugins-cmd.d.cts +311 -0
- package/dist/plugins-cmd.d.mts +311 -0
- package/dist/plugins-cmd.d.ts +311 -0
- package/dist/plugins-cmd.mjs +2498 -0
- package/dist/plugins-demo.cjs +300 -0
- package/dist/plugins-demo.d.cts +291 -0
- package/dist/plugins-demo.d.mts +291 -0
- package/dist/plugins-demo.d.ts +291 -0
- package/dist/plugins-demo.mjs +298 -0
- package/dist/plugins.cjs +3670 -0
- package/dist/plugins.d.cts +343 -0
- package/dist/plugins.d.mts +343 -0
- package/dist/plugins.d.ts +343 -0
- package/dist/plugins.mjs +3663 -0
- package/package.json +33 -1
package/README.md
CHANGED
|
@@ -390,7 +390,7 @@ Diagnostics and CI capture:
|
|
|
390
390
|
- [Cascade and precedence](./guides/cascade.md)
|
|
391
391
|
- [Shell execution behavior and quoting](./guides/shell.md)
|
|
392
392
|
- [Config files and overlays](./guides/config.md)
|
|
393
|
-
- [Plugin-first host and plugins](./guides/plugins.md)
|
|
393
|
+
- [Plugin-first host and plugins](./guides/plugins/index.md)
|
|
394
394
|
|
|
395
395
|
The guides are also included in the [hosted API docs](https://docs.karmanivero.us/get-dotenv).
|
|
396
396
|
|
package/dist/getdotenv.cli.mjs
CHANGED
|
@@ -3299,36 +3299,6 @@ const cmdPlugin = (options = {}) => definePlugin({
|
|
|
3299
3299
|
},
|
|
3300
3300
|
});
|
|
3301
3301
|
|
|
3302
|
-
/**
|
|
3303
|
-
* Demo plugin (educational).
|
|
3304
|
-
*
|
|
3305
|
-
* Purpose
|
|
3306
|
-
* - Showcase how to build a plugin for the GetDotenv CLI host.
|
|
3307
|
-
* - Demonstrate:
|
|
3308
|
-
* - Accessing the resolved dotenv context (ctx).
|
|
3309
|
-
* - Executing child processes with explicit env injection.
|
|
3310
|
-
* - Resolving commands via scripts and honoring per-script shell overrides.
|
|
3311
|
-
* - Thin adapters: business logic stays minimal; use shared helpers.
|
|
3312
|
-
*
|
|
3313
|
-
* Key host APIs used:
|
|
3314
|
-
* - definePlugin: declare a plugin with setup and optional afterResolve.
|
|
3315
|
-
* - cli.ns(name): create a namespaced subcommand under the root CLI.
|
|
3316
|
-
* - cli.getCtx(): access \{ optionsResolved, dotenv, plugins?, pluginConfigs? \}.
|
|
3317
|
-
*
|
|
3318
|
-
* Design notes
|
|
3319
|
-
* - We use the shared runCommand() helper so behavior matches the built-in
|
|
3320
|
-
* cmd/batch plugins (env sanitization, plain vs shell execution, stdio).
|
|
3321
|
-
* - We inject ctx.dotenv into child env explicitly to avoid bleeding prior
|
|
3322
|
-
* secrets from process.env when exclusions are set (e.g., --exclude-private).
|
|
3323
|
-
* - We resolve scripts and shell using shared helpers to honor overrides:
|
|
3324
|
-
* resolveCommand(scripts, input) and resolveShell(scripts, input, shell).
|
|
3325
|
-
*
|
|
3326
|
-
* Usage (examples)
|
|
3327
|
-
* getdotenv demo ctx
|
|
3328
|
-
* getdotenv demo run --print APP_SETTING
|
|
3329
|
-
* getdotenv demo script echo OK
|
|
3330
|
-
* getdotenv --trace demo run --print ENV_SETTING
|
|
3331
|
-
*/
|
|
3332
3302
|
const demoPlugin = () => definePlugin({
|
|
3333
3303
|
id: 'demo',
|
|
3334
3304
|
setup(cli) {
|
package/dist/index.cjs
CHANGED
|
@@ -3308,36 +3308,6 @@ const cmdPlugin = (options = {}) => definePlugin({
|
|
|
3308
3308
|
},
|
|
3309
3309
|
});
|
|
3310
3310
|
|
|
3311
|
-
/**
|
|
3312
|
-
* Demo plugin (educational).
|
|
3313
|
-
*
|
|
3314
|
-
* Purpose
|
|
3315
|
-
* - Showcase how to build a plugin for the GetDotenv CLI host.
|
|
3316
|
-
* - Demonstrate:
|
|
3317
|
-
* - Accessing the resolved dotenv context (ctx).
|
|
3318
|
-
* - Executing child processes with explicit env injection.
|
|
3319
|
-
* - Resolving commands via scripts and honoring per-script shell overrides.
|
|
3320
|
-
* - Thin adapters: business logic stays minimal; use shared helpers.
|
|
3321
|
-
*
|
|
3322
|
-
* Key host APIs used:
|
|
3323
|
-
* - definePlugin: declare a plugin with setup and optional afterResolve.
|
|
3324
|
-
* - cli.ns(name): create a namespaced subcommand under the root CLI.
|
|
3325
|
-
* - cli.getCtx(): access \{ optionsResolved, dotenv, plugins?, pluginConfigs? \}.
|
|
3326
|
-
*
|
|
3327
|
-
* Design notes
|
|
3328
|
-
* - We use the shared runCommand() helper so behavior matches the built-in
|
|
3329
|
-
* cmd/batch plugins (env sanitization, plain vs shell execution, stdio).
|
|
3330
|
-
* - We inject ctx.dotenv into child env explicitly to avoid bleeding prior
|
|
3331
|
-
* secrets from process.env when exclusions are set (e.g., --exclude-private).
|
|
3332
|
-
* - We resolve scripts and shell using shared helpers to honor overrides:
|
|
3333
|
-
* resolveCommand(scripts, input) and resolveShell(scripts, input, shell).
|
|
3334
|
-
*
|
|
3335
|
-
* Usage (examples)
|
|
3336
|
-
* getdotenv demo ctx
|
|
3337
|
-
* getdotenv demo run --print APP_SETTING
|
|
3338
|
-
* getdotenv demo script echo OK
|
|
3339
|
-
* getdotenv --trace demo run --print ENV_SETTING
|
|
3340
|
-
*/
|
|
3341
3311
|
const demoPlugin = () => definePlugin({
|
|
3342
3312
|
id: 'demo',
|
|
3343
3313
|
setup(cli) {
|
package/dist/index.mjs
CHANGED
|
@@ -3305,36 +3305,6 @@ const cmdPlugin = (options = {}) => definePlugin({
|
|
|
3305
3305
|
},
|
|
3306
3306
|
});
|
|
3307
3307
|
|
|
3308
|
-
/**
|
|
3309
|
-
* Demo plugin (educational).
|
|
3310
|
-
*
|
|
3311
|
-
* Purpose
|
|
3312
|
-
* - Showcase how to build a plugin for the GetDotenv CLI host.
|
|
3313
|
-
* - Demonstrate:
|
|
3314
|
-
* - Accessing the resolved dotenv context (ctx).
|
|
3315
|
-
* - Executing child processes with explicit env injection.
|
|
3316
|
-
* - Resolving commands via scripts and honoring per-script shell overrides.
|
|
3317
|
-
* - Thin adapters: business logic stays minimal; use shared helpers.
|
|
3318
|
-
*
|
|
3319
|
-
* Key host APIs used:
|
|
3320
|
-
* - definePlugin: declare a plugin with setup and optional afterResolve.
|
|
3321
|
-
* - cli.ns(name): create a namespaced subcommand under the root CLI.
|
|
3322
|
-
* - cli.getCtx(): access \{ optionsResolved, dotenv, plugins?, pluginConfigs? \}.
|
|
3323
|
-
*
|
|
3324
|
-
* Design notes
|
|
3325
|
-
* - We use the shared runCommand() helper so behavior matches the built-in
|
|
3326
|
-
* cmd/batch plugins (env sanitization, plain vs shell execution, stdio).
|
|
3327
|
-
* - We inject ctx.dotenv into child env explicitly to avoid bleeding prior
|
|
3328
|
-
* secrets from process.env when exclusions are set (e.g., --exclude-private).
|
|
3329
|
-
* - We resolve scripts and shell using shared helpers to honor overrides:
|
|
3330
|
-
* resolveCommand(scripts, input) and resolveShell(scripts, input, shell).
|
|
3331
|
-
*
|
|
3332
|
-
* Usage (examples)
|
|
3333
|
-
* getdotenv demo ctx
|
|
3334
|
-
* getdotenv demo run --print APP_SETTING
|
|
3335
|
-
* getdotenv demo script echo OK
|
|
3336
|
-
* getdotenv --trace demo run --print ENV_SETTING
|
|
3337
|
-
*/
|
|
3338
3308
|
const demoPlugin = () => definePlugin({
|
|
3339
3309
|
id: 'demo',
|
|
3340
3310
|
setup(cli) {
|