Add a JSON output format to the cat command for machine-readable catalogue data.
Use case
The cat command produces human-readable tabular output intended for the terminal. When scripting - indexing large collections, generating web catalogues, or feeding data into other tools - structured output is needed. Parsing the terminal table is fragile and breaks when the display format changes.
Proposed behaviour
beebtools cat mydisc.ssd --format json
beebtools cat mydisc.adf --format json
Outputs the full catalogue as a JSON object including disc title, boot option, and an array of file entries with all metadata (name, directory, load address, exec address, length, locked status, start sector).
Add a JSON output format to the
catcommand for machine-readable catalogue data.Use case
The
catcommand produces human-readable tabular output intended for the terminal. When scripting - indexing large collections, generating web catalogues, or feeding data into other tools - structured output is needed. Parsing the terminal table is fragile and breaks when the display format changes.Proposed behaviour
Outputs the full catalogue as a JSON object including disc title, boot option, and an array of file entries with all metadata (name, directory, load address, exec address, length, locked status, start sector).