https://github.com/stumpapp/cbl.rs
https://github.com/stumpapp/cbl.rs
Last synced: 6 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/stumpapp/cbl.rs
- Owner: stumpapp
- Created: 2024-02-22T23:37:27.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-02-26T23:17:56.000Z (over 2 years ago)
- Last Synced: 2024-12-29T11:30:00.290Z (over 1 year ago)
- Language: Rust
- Size: 149 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# CBL to JSON
A tool to convert legacy CBL files to the (upcoming) new format
## Current state

It's not ready
## Usage
Using `cargo`:
You can see help for the tool and any of its subcommands by running:
```bash
cargo run -- --help
cargo run -- CMD --help
```
To convert a file:
```bash
cargo run -- convert --file (--spec-version )? (--output )?
```
Where `` is the path to the file you want to convert, `` is the version of the new format you want to convert to, and `` is the path to the file you want to write the new format to.
If you don't specify a spec version, the tool will use the latest version. If you don't specify an output file, the tool will write the JSON to stdout (eventually :wink:)
## Todo
- [ ] Figure out what version of CBL I have been using as a base
- [ ] Figure out the schemas (rough) for each version the tool needs to support
- [ ] Write the structure for the new format
- [ ] I'm sure a lot of other things
- [ ] Restructure the code to be a library-first, so Stump can use it once the new format is ready
- [ ] Remove this README todo list