mirror of
https://github.com/aljazceru/turso.git
synced 2025-12-18 17:14:20 +01:00
add path completion for .import
This commit is contained in:
@@ -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,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user