@bensandee/tooling 0.76.0 → 0.77.0

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
@@ -501,6 +501,17 @@ Available override fields:
501
501
  | `detectPackageTypes` | boolean | `true` |
502
502
  | `pnpmWorkspace` | `false` | Set to `false` to opt out of `pnpm-workspace.yaml` management |
503
503
 
504
+ ## Environment file
505
+
506
+ Set `BST_ENV_FILE` to the path of an env file and every `bst` command loads it before anything else runs -- a way to feed tokens to the tools from one annotated file without exporting them into your shell:
507
+
508
+ ```bash
509
+ # in your shell profile
510
+ export BST_ENV_FILE=/home/you/.secrets.env
511
+ ```
512
+
513
+ The file takes `KEY=value` lines, `#` comments, blank lines, and an optional `export ` prefix. A variable already set in the environment always wins over the file, so a container's `-e` or a shell export is never overridden. Unset, no file is touched; set to a file that cannot be read, the command fails before it starts (under `--json`, as the usual `{ok: false}` document). Name the file so it ends in `.env`: the bst-hook then keeps an agent session from reading or writing it while the tools still load it. This is a development convenience -- a production container should receive every variable through `docker run -e` and leave `BST_ENV_FILE` unset.
514
+
504
515
  ## Debug logging
505
516
 
506
517
  All CLI commands support a `--verbose` flag for detailed debug output. Alternatively, set `TOOLING_DEBUG=true` as an environment variable -- useful in CI workflows: