Features
- Added
project_dir, a per-config base directory for relative project paths. - Combine project definitions across imports: merge tags, env, remotes and worktrees, with importing configs overriding individual fields.
- Added
mani init --source <provider>/<name>to create a config from a GitHub, Gitea, Forgejo or Codeberg organization or user, through theghandgtCLIs - Added
mani refreshto add new repositories from the sources and from local clones to the config - Added
mani project addandmani project rmto edit the projects of a config - Added
json,jsonlandyamloutput formats formani runandmani exec, andjsonandyamlformani list#99
Breaking
- A config with a YAML document marker (
---or...) is an error: a mani config is one YAML document. Remove the marker line. mani initno longer renames repositories that have the same name to their path: the first one that is found keeps the name, and the others are listed as not added, with the command that adds them under another name.- A project name can't be a name that YAML reads as another value as a key without quotes (
1.0is the number 1,Truethe boolean true,nulland~are null,2024-01-01is a timestamp).mani initlists a repository with such a name as not added, where it wrote the key without quotes before.mani project add,mani project rmandmani refreshdon't edit a config with a project of such a name, quoted or not: rename the project. - A target or a task that names a project that doesn't exist is an error when the config is loaded, and in
mani check: it failed when it was run. The targets and tasks of the user config, which every workspace imports, are not checked.
Fixes
- Keep the
envof a task when it's referenced by another task withtask:, or run together with other tasks #98 - Return an error for an invalid
--outputvalue inmani run,mani execandmani list, and for an invalidoutputin a spec defined in a task, instead of falling back to the default output - List a tag once when it's provided more than once to
mani list tags - Show the stream output option in the TUI when the default spec has an output that the TUI doesn't support
- Evaluate project env after merging and validation, preserving the source of errors and skipping overridden commands.
- Resolve displayed project paths relative to the root config.
- Don't add git submodules, or the worktrees of a bare repository, as projects in
mani init mani syncdoesn't take a directory that is not a git repository for the clone of a project: it is not cloned into, the table shows it, and the sync is an errormani initdoesn't add a repository in a path with a$, or one that starts with~, which mani would read as an environment variable or the home directory: it is listed as not added- The TUI shows an error, and keeps the config it has, when a reload of the config doesn't have the theme in use, instead of exiting with the TUI left on the terminal
- The text modals of the TUI (the description of a project or a task, an error) show every line of their text: the last two lines were hidden
- The TUI shows why a command or a task wasn't run, as for a project that isn't cloned, and keeps running, instead of quitting
mani initis an error in a directory with a.mani.yaml,mani.ymlor.mani.yml, as with amani.yaml: it wrote amani.yamlnext to it, which mani then used instead- With
--reload-on-change, the TUI says why the config can't be watched (an inotify limit), before it starts, and stops with the error of a watch, instead of exiting without a word with the TUI left on the terminal mani initdoesn't write the git dir of a repo whose git dir is elsewhere (git init --separate-git-dir, a submodule) as a worktree of it, andmani sync --remove-orphaned-worktreesdoesn't try to remove itmani initfinds the repositories of a workspace that is reached through a symlink: it wrote a config without projectsmani initandmani refreshdon't write the user and the token of an https remote (https://ci-bot:ghp_…@github.com/…) to the config