mirror of
https://github.com/aljazceru/turso.git
synced 2025-12-19 09:34:18 +01:00
add path completion for .import
This commit is contained in:
@@ -1,4 +1,5 @@
|
|||||||
use clap::Args;
|
use clap::Args;
|
||||||
|
use clap_complete::{ArgValueCompleter, PathCompleter};
|
||||||
use limbo_core::Connection;
|
use limbo_core::Connection;
|
||||||
use std::{fs::File, io::Write, path::PathBuf, rc::Rc, sync::Arc};
|
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
|
/// Skip the first N rows of input
|
||||||
#[arg(long, default_value = "0")]
|
#[arg(long, default_value = "0")]
|
||||||
skip: u64,
|
skip: u64,
|
||||||
|
#[arg(add = ArgValueCompleter::new(PathCompleter::file()))]
|
||||||
file: PathBuf,
|
file: PathBuf,
|
||||||
table: String,
|
table: String,
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user