Skip to content

v0.2.2

Latest

Choose a tag to compare

@sanayasfp sanayasfp released this 04 Aug 11:47
· 3 commits to main since this release

New manifest features driven by real dogfooding, plus a proper activate/deactivate pair for projects.

Added

  • [project].env_files — extra .env paths loaded alongside the project root's own .env. Used by stack up, stack doctor --project, and stack load-env, which now falls back to the root .env plus any declared env_files when no explicit path is given, instead of hard-failing when .env isn't at the project root.
  • [language.*].venv — a project's virtualenv directory, folded into the existing ambient stack activate PATH-building. No more .venv\Scripts\activate step — just cd in, same as everything else stack manages. stack doctor --project reports whether it exists.
  • [script.<name>] + stack run <name> — named, project-scoped commands (migrations, tests, seed scripts, ...), run in the foreground. Supports multi-step sequences (a TOML array or a multi-line string, one step per line), stops at the first failing step with its exit code, forwards trailing args to the last step (stack run test -- -k foo), gets the same language/venv PATH as stack up, and stack run alone lists what's declared. Goes through its own lazy trust-on-first-use, checked only when a script is actually run.
  • Commands can now be written as a multi-line string or a TOML array (CommandSpec), split into sequential steps — currently used by [script.*] only.

Changed

  • stack deactivate now also suppresses the current directory's project activation (PATH, prompt indicator), not just an explicitly-activated profile. Previously the only way to turn off project activation was to leave the directory entirely. It stays suppressed while you're inside that project and clears itself automatically the moment you actually leave, so a later visit reactivates normally.
  • stack activate with no shell argument is a new explicit command that reactivates a suppressed project without leaving its directory — the counterpart to stack deactivate, distinct from stack activate <shell> (used internally by the shell hook on every prompt).

Install

irm https://github.com/sanayasfp/stack/releases/latest/download/stackenv-installer.ps1 | iex

or

cargo install stackenv