From 4fbbbd2d991b37ac04b77151ef862de9649bbfec Mon Sep 17 00:00:00 2001 From: sigoden Date: Fri, 28 Jun 2024 06:24:20 +0800 Subject: feat: `.file`/`--file` support URLs (#665) --- src/repl/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/repl/mod.rs') diff --git a/src/repl/mod.rs b/src/repl/mod.rs index c09395d..360af70 100644 --- a/src/repl/mod.rs +++ b/src/repl/mod.rs @@ -318,7 +318,7 @@ Tips: use to autocomplete conversation starter text. Some(args) => { let (files, text) = split_files_text(args); let files = shell_words::split(files).with_context(|| "Invalid args")?; - let input = Input::new(&self.config, text, files, None)?; + let input = Input::from_files(&self.config, text, files, None).await?; ask(&self.config, self.abort_signal.clone(), input, true).await?; } None => println!("Usage: .file ... [-- ...]"), -- cgit v1.2.3