mirror of
https://github.com/NotAShelf/stash.git
synced 2026-04-13 14:33:47 +00:00
stash: remove redundant import flag
Signed-off-by: NotAShelf <raf@notashelf.dev> Change-Id: I6a6a6964348f1ad4915890f0b4ccd59619cc3e1a
This commit is contained in:
parent
bb2c66fd3e
commit
0c8003d636
1 changed files with 1 additions and 8 deletions
|
|
@ -37,9 +37,6 @@ struct Cli {
|
||||||
|
|
||||||
#[arg(long)]
|
#[arg(long)]
|
||||||
db_path: Option<PathBuf>,
|
db_path: Option<PathBuf>,
|
||||||
|
|
||||||
#[arg(long)]
|
|
||||||
import_tsv: bool,
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Subcommand)]
|
#[derive(Subcommand)]
|
||||||
|
|
@ -89,12 +86,8 @@ fn main() {
|
||||||
log::error!("Failed to open database: {e}");
|
log::error!("Failed to open database: {e}");
|
||||||
process::exit(1);
|
process::exit(1);
|
||||||
});
|
});
|
||||||
let db = db::SledClipboardDb { db: sled_db };
|
|
||||||
|
|
||||||
if cli.import_tsv {
|
let db = db::SledClipboardDb { db: sled_db };
|
||||||
db.import_tsv(io::stdin());
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
match cli.command {
|
match cli.command {
|
||||||
Some(Command::Store) => {
|
Some(Command::Store) => {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue