()
| 186 | } |
| 187 | |
| 188 | pub fn print_help_list() { |
| 189 | println!("GitQL is a SQL like query language to run on local repositories"); |
| 190 | println!(); |
| 191 | println!("Usage: gitql [OPTIONS]"); |
| 192 | println!(); |
| 193 | println!("Options:"); |
| 194 | println!("-r, --repos <REPOS> Path for local repositories to run query on"); |
| 195 | println!("-s, --script <file> Script file contains one or more query"); |
| 196 | println!("-q, --query <GitQL Query> GitQL query to run on selected repositories"); |
| 197 | println!("-p, --pagination Enable print result with pagination"); |
| 198 | println!("-ps, --pagesize Set pagination page size [default: 10]"); |
| 199 | println!("-o, --output Set output format [render, json, csv]"); |
| 200 | println!("-a, --analysis Print Query analysis"); |
| 201 | println!("-e, --editor Enable GitQL Rich Line Editor"); |
| 202 | println!("-h, --help Print GitQL help"); |
| 203 | println!("-v, --version Print GitQL Current Version"); |
| 204 | } |
| 205 | |
| 206 | #[cfg(test)] |
| 207 | mod tests { |
no outgoing calls
no test coverage detected
searching dependent graphs…