TODO: use clap_markdown instead of this custom implementation in the future
()
| 4 | |
| 5 | // TODO: use clap_markdown instead of this custom implementation in the future |
| 6 | pub fn generate_cli_docs() -> String { |
| 7 | let mut cli = Cli::command(); |
| 8 | let usage = generate_markdown(&mut cli, 2); |
| 9 | |
| 10 | format!( |
| 11 | "\ |
| 12 | # SpacetimeDB's cargo ci |
| 13 | |
| 14 | ## Overview |
| 15 | |
| 16 | This document provides an overview of the `cargo ci` command-line tool, and documentation for each of its subcommands and options. |
| 17 | |
| 18 | {} |
| 19 | --- |
| 20 | |
| 21 | This document is auto-generated by running: |
| 22 | |
| 23 | ```bash |
| 24 | cargo ci self-docs |
| 25 | ```", |
| 26 | usage |
| 27 | ) |
| 28 | } |
| 29 | |
| 30 | fn generate_markdown(cmd: &mut Command, heading_level: usize) -> String { |
| 31 | let mut out = String::new(); |
no test coverage detected
searching dependent graphs…