cli : add /glob command (#21084)

* add /glob command

* output error when max files reached

* support globbing outside curdir
This commit is contained in:
Sigbjørn Skjæret
2026-03-28 02:33:04 +01:00
committed by GitHub
parent bf934f28db
commit c46758d28f
4 changed files with 114 additions and 49 deletions
+2
View File
@@ -794,6 +794,8 @@ std::string string_from(const std::vector<int> & values);
std::string string_from(const struct llama_context * ctx, const std::vector<llama_token> & tokens);
std::string string_from(const struct llama_context * ctx, const struct llama_batch & batch);
bool glob_match(const std::string & pattern, const std::string & str);
//
// Filesystem utils
//