You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit was created on GitHub.com and signed with GitHub’s verified signature.
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 the gh and gt CLIs
Added mani refresh to add new repositories from the sources and from local clones to the config
Added mani project add and mani project rm to edit the projects of a config
Added json, jsonl and yaml output formats for mani run and mani exec, and json and yaml for mani 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 init no 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.0 is the number 1, True the boolean true, null and ~ are null, 2024-01-01 is a timestamp). mani init lists a repository with such a name as not added, where it wrote the key without quotes before. mani project add, mani project rm and mani refresh don'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 env of a task when it's referenced by another task with task:, or run together with other tasks #98
Return an error for an invalid --output value in mani run, mani exec and mani list, and for an invalid output in 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 sync doesn'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 error
mani init doesn'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 init is an error in a directory with a .mani.yaml, mani.yml or .mani.yml, as with a mani.yaml: it wrote a mani.yaml next 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 init doesn'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, and mani sync --remove-orphaned-worktrees doesn't try to remove it
mani init finds the repositories of a workspace that is reached through a symlink: it wrote a config without projects
mani init and mani refresh don't write the user and the token of an https remote (https://ci-bot:ghp_…@github.com/…) to the config