Skip to content

Commit 3e6a8de

Browse files
sketch7-botstephenlautiergithub-actions[bot]
authored
release: v1.1.0 (#12)
Automated release PR for `v1.1.0`. Merge this PR to publish the stable release and create the GitHub Release. --------- Co-authored-by: Stephen Lautier <stephen.lautier@outlook.com> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 parent fbd65fb commit 3e6a8de

4 files changed

Lines changed: 15 additions & 5 deletions

File tree

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ pnpm add -g @ssv/cli
2020
## Getting Started
2121

2222
```bash
23-
# 1. Configure workspace root and config directory interactively
23+
# 1. Configure workspace root, shell, and config directory interactively
2424
ssv mass-exec setup
2525

2626
# 2. List available configs
@@ -35,7 +35,7 @@ ssv mass-exec ssv/tools
3535

3636
## Configure
3737

38-
Run the interactive setup wizard to register your workspace root and config directory:
38+
Run the interactive setup wizard to register your workspace root, shell, and config directory:
3939

4040
```bash
4141
ssv mass-exec setup
@@ -45,6 +45,7 @@ Or set each value individually:
4545

4646
```bash
4747
ssv mass-exec set ws-root S:/git
48+
ssv mass-exec set shell bash
4849
ssv mass-exec set config-root S:/git/my-resource/mass-exec
4950
```
5051

docs/mass-exec.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,8 @@ ssv mass-exec [run] <names...> [options]
9696
Config files are **YAML** (`.yaml` or `.yml`). Point your editor at the JSON Schema for completions and validation:
9797

9898
```yaml
99-
# yaml-language-server: $schema=https://raw.githubusercontent.com/sketch7/ssv.cli/refs/heads/main/mass-exec.config.schema.json
100-
$schema: "https://raw.githubusercontent.com/sketch7/ssv.cli/refs/heads/main/mass-exec.config.schema.json"
99+
# yaml-language-server: $schema=https://raw.githubusercontent.com/sketch7/ssv.cli/refs/heads/v1/mass-exec.config.schema.json
100+
$schema: "https://raw.githubusercontent.com/sketch7/ssv.cli/refs/heads/v1/mass-exec.config.schema.json"
101101

102102
# Optional: per-config workspace root (projects for this config are cloned here)
103103
# Supports {wsRoot} token — resolves to the global ws-root setting

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@ssv/cli",
3-
"version": "1.0.0",
3+
"version": "1.1.0",
44
"private": false,
55
"description": "@ssv developer tooling CLI",
66
"license": "MIT",

src/commands/mass-exec.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,15 @@ export default function registerMassExecCommand(program: Command): void {
121121
consola.info(`${colors.cyan("mass-exec configs")} ${colors.dim(settings.configRoot)}\n`);
122122
for (const entry of configs) {
123123
consola.log(` ${colors.cyan(entry.name)} ${colors.dim(entry.filePath)}`);
124+
try {
125+
const raw = parseYaml(readFileSync(entry.filePath, "utf8"));
126+
const config = v.parse(MassCommandsConfigSchema, raw);
127+
for (const project of config.projects) {
128+
consola.log(` ${colors.dim("·")} ${project.name}`);
129+
}
130+
} catch {
131+
// silently skip unparseable configs
132+
}
124133
}
125134
});
126135

0 commit comments

Comments
 (0)