@karmaniverous/get-dotenv 5.2.2 → 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 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
 
@@ -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) {
@@ -188,36 +188,6 @@ const resolveShell = (scripts, command, shell) => scripts && typeof scripts[comm
188
188
  ? (scripts[command].shell ?? false)
189
189
  : (shell ?? false);
190
190
 
191
- /**
192
- * Demo plugin (educational).
193
- *
194
- * Purpose
195
- * - Showcase how to build a plugin for the GetDotenv CLI host.
196
- * - Demonstrate:
197
- * - Accessing the resolved dotenv context (ctx).
198
- * - Executing child processes with explicit env injection.
199
- * - Resolving commands via scripts and honoring per-script shell overrides.
200
- * - Thin adapters: business logic stays minimal; use shared helpers.
201
- *
202
- * Key host APIs used:
203
- * - definePlugin: declare a plugin with setup and optional afterResolve.
204
- * - cli.ns(name): create a namespaced subcommand under the root CLI.
205
- * - cli.getCtx(): access \{ optionsResolved, dotenv, plugins?, pluginConfigs? \}.
206
- *
207
- * Design notes
208
- * - We use the shared runCommand() helper so behavior matches the built-in
209
- * cmd/batch plugins (env sanitization, plain vs shell execution, stdio).
210
- * - We inject ctx.dotenv into child env explicitly to avoid bleeding prior
211
- * secrets from process.env when exclusions are set (e.g., --exclude-private).
212
- * - We resolve scripts and shell using shared helpers to honor overrides:
213
- * resolveCommand(scripts, input) and resolveShell(scripts, input, shell).
214
- *
215
- * Usage (examples)
216
- * getdotenv demo ctx
217
- * getdotenv demo run --print APP_SETTING
218
- * getdotenv demo script echo OK
219
- * getdotenv --trace demo run --print ENV_SETTING
220
- */
221
191
  const demoPlugin = () => definePlugin({
222
192
  id: 'demo',
223
193
  setup(cli) {
@@ -186,36 +186,6 @@ const resolveShell = (scripts, command, shell) => scripts && typeof scripts[comm
186
186
  ? (scripts[command].shell ?? false)
187
187
  : (shell ?? false);
188
188
 
189
- /**
190
- * Demo plugin (educational).
191
- *
192
- * Purpose
193
- * - Showcase how to build a plugin for the GetDotenv CLI host.
194
- * - Demonstrate:
195
- * - Accessing the resolved dotenv context (ctx).
196
- * - Executing child processes with explicit env injection.
197
- * - Resolving commands via scripts and honoring per-script shell overrides.
198
- * - Thin adapters: business logic stays minimal; use shared helpers.
199
- *
200
- * Key host APIs used:
201
- * - definePlugin: declare a plugin with setup and optional afterResolve.
202
- * - cli.ns(name): create a namespaced subcommand under the root CLI.
203
- * - cli.getCtx(): access \{ optionsResolved, dotenv, plugins?, pluginConfigs? \}.
204
- *
205
- * Design notes
206
- * - We use the shared runCommand() helper so behavior matches the built-in
207
- * cmd/batch plugins (env sanitization, plain vs shell execution, stdio).
208
- * - We inject ctx.dotenv into child env explicitly to avoid bleeding prior
209
- * secrets from process.env when exclusions are set (e.g., --exclude-private).
210
- * - We resolve scripts and shell using shared helpers to honor overrides:
211
- * resolveCommand(scripts, input) and resolveShell(scripts, input, shell).
212
- *
213
- * Usage (examples)
214
- * getdotenv demo ctx
215
- * getdotenv demo run --print APP_SETTING
216
- * getdotenv demo script echo OK
217
- * getdotenv --trace demo run --print ENV_SETTING
218
- */
219
189
  const demoPlugin = () => definePlugin({
220
190
  id: 'demo',
221
191
  setup(cli) {