Onset: version control where nobody waits and nothing gets lost. The on command, its core and onset-server.
| 5 |
| fn main() { |
| 6 | let path = std::env::args().nth(1).expect("usage: decls_dump <path> < file"); |
| 7 | let mut text = Vec::new(); |
| 8 | std::io::stdin().read_to_end(&mut text).unwrap(); |
| 9 | for (key, line) in onset_core::decls::declared(&path, &text) { |
| 10 | println!("{:>5} {key}", line + 1); |
| 11 | } |
| 12 | } |
| 13 |