nu-cli/completions: complete external args as filepath (#5385)

This commit is contained in:
Herlon Aguiar 2022-04-30 22:07:09 +02:00 committed by GitHub
parent 7c6f976d65
commit 3df03e2e6d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -175,7 +175,9 @@ impl NuCompleter {
pos, pos,
); );
} }
FlatShape::Filepath | FlatShape::GlobPattern => { FlatShape::Filepath
| FlatShape::GlobPattern
| FlatShape::ExternalArg => {
let mut completer = FileCompletion::new(self.engine_state.clone()); let mut completer = FileCompletion::new(self.engine_state.clone());
return self.process_completion( return self.process_completion(