I'm working on a thing that will enable you to create beautiful task runner CLIs like this in plain old Nix, with support for before/after, confirmation to proceed, aliases, scoped env vars, and more. And every task uses writeShellApplication so you get shellcheck for free.