help text
This commit is contained in:
+4
-1
@@ -33,7 +33,7 @@ pub enum KeyType {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Parser)]
|
#[derive(Parser)]
|
||||||
#[command(name = "drawer")]
|
#[command(name = "drawer", about = "Encrypt and decrypt project directories as drawer files")]
|
||||||
struct Cli {
|
struct Cli {
|
||||||
#[command(subcommand)]
|
#[command(subcommand)]
|
||||||
command: Command,
|
command: Command,
|
||||||
@@ -41,6 +41,7 @@ struct Cli {
|
|||||||
|
|
||||||
#[derive(Subcommand)]
|
#[derive(Subcommand)]
|
||||||
enum Command {
|
enum Command {
|
||||||
|
/// Decrypt and expand a drawer file into a directory
|
||||||
Open {
|
Open {
|
||||||
drawer_file: PathBuf,
|
drawer_file: PathBuf,
|
||||||
target_path: Option<PathBuf>,
|
target_path: Option<PathBuf>,
|
||||||
@@ -49,12 +50,14 @@ enum Command {
|
|||||||
#[arg(short = 'f')]
|
#[arg(short = 'f')]
|
||||||
force: bool,
|
force: bool,
|
||||||
},
|
},
|
||||||
|
/// Compress and encrypt a directory into a drawer file
|
||||||
Close {
|
Close {
|
||||||
drawer_file: PathBuf,
|
drawer_file: PathBuf,
|
||||||
target_path: Option<PathBuf>,
|
target_path: Option<PathBuf>,
|
||||||
#[arg(short = 'i')]
|
#[arg(short = 'i')]
|
||||||
key: Option<PathBuf>,
|
key: Option<PathBuf>,
|
||||||
},
|
},
|
||||||
|
/// Generate a new SSH key and save it to a file
|
||||||
Key {
|
Key {
|
||||||
filename: PathBuf,
|
filename: PathBuf,
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user