File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
2424ssv 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
4141ssv mass-exec setup
@@ -45,6 +45,7 @@ Or set each value individually:
4545
4646``` bash
4747ssv mass-exec set ws-root S:/git
48+ ssv mass-exec set shell bash
4849ssv mass-exec set config-root S:/git/my-resource/mass-exec
4950```
5051
Original file line number Diff line number Diff line change @@ -96,8 +96,8 @@ ssv mass-exec [run] <names...> [options]
9696Config 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
Original file line number Diff line number Diff line change 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" ,
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments