Print help message
()
| 339 | |
| 340 | /// Print help message |
| 341 | fn print_help() { |
| 342 | println!("{}", "Available commands:".bold().green()); |
| 343 | println!(" {} - Show this help message", "help".cyan()); |
| 344 | println!(" {} - Exit the GQL console", "exit/quit".cyan()); |
| 345 | println!(" {} - Clear the screen", "clear".cyan()); |
| 346 | println!("\n{}", "Query syntax:".bold().green()); |
| 347 | println!(" Multi-line queries are supported"); |
| 348 | println!(" Terminate queries with semicolon (;)"); |
| 349 | println!("\n{}", "Examples:".bold().green()); |
| 350 | println!(" {}", "MATCH (n:Person) RETURN n;".yellow()); |
| 351 | println!(" {}", "CREATE SCHEMA /myschema;".yellow()); |
| 352 | println!(" {}", "INSERT (p:Person {{name: 'Alice'}});".yellow()); |
| 353 | } |