File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -2,18 +2,28 @@ use clap::Parser;
2
2
use std:: path:: PathBuf ;
3
3
4
4
#[ derive( Parser , Debug ) ]
5
+ #[ command( version, about) ]
5
6
pub struct Args {
7
+ /// The directory to initialize a db cluster in
6
8
pub directory : PathBuf ,
9
+ /// Run postgres in an existing db cluster
7
10
#[ arg( long) ]
8
11
pub use_existing_dir : bool ,
12
+ /// Localhost port to listen on
9
13
#[ arg( short, long) ]
10
14
pub port : Option < u16 > ,
15
+ /// Control if the directory is deleted when tmp-postgres ends
11
16
#[ arg( long = "remove" ) ]
12
17
pub should_remove : Option < bool > ,
18
+ /// Start a psql session
13
19
#[ arg( long) ]
14
20
pub psql : bool ,
21
+ /// Silences stdout/stderr forwarding from initdb and postgres
15
22
#[ arg( long) ]
16
23
pub silent : bool ,
24
+ /// Optional command to run when tmp-postgres is ready to receive
25
+ /// connections, when specified tmp-postgres will tear down after the
26
+ /// command exits
17
27
#[ arg( trailing_var_arg = true ) ]
18
28
pub around : Vec < String > ,
19
29
}
You can’t perform that action at this time.
0 commit comments