Skip to content

stratarc 0.3.0

Choose a tag to compare

@klappe-pm klappe-pm released this 14 Oct 21:18
· 4 commits to main since this release
326dfd1

Added

  • stratarc with no command starts a guided setup the first time: it creates or adopts a source root, enables the runtimes it finds installed, previews the first deploy and deploys only on an explicit yes. Once set up, it prints where the source root is and the commands to run next. Outside a terminal it prints the help.
  • stratarc setup, the same guided setup on demand. It records the source root in ~/.stratarc/config.toml, so later commands find it from any directory.
  • stratarc help [COMMAND], and examples in the help of every command.
  • A mistyped command names the closest one (stratarc synk suggests stratarc sync).
  • Every error line ends with a link to its entry in the error reference.

Changed

  • An argument a command does not take is reported against that command's usage, not the top-level one, and with --json every usage error prints one envelope (msg-1010, msg-1011, msg-1014).
  • init ends by printing the commands to run next.
  • With --json, an engine command's data.exit is the status stratarc exits with. It used to be the status the command's module returned, so stratarc --json check reported "exit": 1 on drift while exiting 6. A caller that read 1 as drift must now read 6.

Fixed

  • A command run in a directory with no stratarc.toml at or above it, and no other source root configured, is refused with msg-1009. It used to treat that directory as a source root, and sync wrote a control-plane.md into it before failing. A source root you run commands from without --root or STRATARC_SOURCE now needs a stratarc.toml; an empty one uses the defaults.
  • stratarc doctor reports that case as a problem, and reports a remembered source root that no longer holds stratarc.toml (msg-1013).
  • The generated command reference shows a required option without brackets in its usage line, so adapter deprecate no longer presents --reason and --end-date as optional.
  • validate, projects, gen-rules-digest and components check their arguments before looking for the source root, so stratarc validate --bogus outside a source root reports the usage error (msg-1014) instead of msg-1009.
  • An argument a forwarded command does not take is reported before a missing required one, so stratarc gen-rules-digest --bogus names --bogus instead of the missing mode flag.