neo4j_cli/lib.rs
1use clap::{Args, Parser, Subcommand};
2
3#[derive(Debug, Parser)]
4#[clap(author, version, about)]
5pub struct Cli {
6 #[clap(subcommand)]
7 pub command: Commands,
8}
9
10#[derive(Debug, Subcommand)]
11pub enum Commands {
12 /// Connect with the DB
13 Connect(Connect),
14}
15
16#[derive(Debug, Args)]
17pub struct Connect {
18 pub uri: String,
19 pub username: String,
20 pub password: String,
21}