mirror of
https://github.com/tursodatabase/limbo.git
synced 2025-08-04 01:58:16 +00:00
add path completion for .import
This commit is contained in:
parent
d5fa37ab66
commit
907794cb07
1 changed files with 2 additions and 0 deletions
|
@ -1,4 +1,5 @@
|
|||
use clap::Args;
|
||||
use clap_complete::{ArgValueCompleter, PathCompleter};
|
||||
use limbo_core::Connection;
|
||||
use std::{fs::File, io::Write, path::PathBuf, rc::Rc, sync::Arc};
|
||||
|
||||
|
@ -13,6 +14,7 @@ pub struct ImportArgs {
|
|||
/// Skip the first N rows of input
|
||||
#[arg(long, default_value = "0")]
|
||||
skip: u64,
|
||||
#[arg(add = ArgValueCompleter::new(PathCompleter::file()))]
|
||||
file: PathBuf,
|
||||
table: String,
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue