Add Create Directory Tool (#27505)
`mkdir -p` but it works cross-platform and uses project abstractions. <img width="629" alt="Screenshot 2025-03-26 at 11 02 37 AM" src="https://github.com/user-attachments/assets/9ef58d53-3343-4c94-a8f3-b82ab942611b" /> Release Notes: - N/A
This commit is contained in:
parent
e67ad1a1b6
commit
9db4c8b710
3 changed files with 95 additions and 0 deletions
|
@ -1,5 +1,6 @@
|
|||
mod bash_tool;
|
||||
mod copy_path_tool;
|
||||
mod create_directory_tool;
|
||||
mod create_file_tool;
|
||||
mod delete_path_tool;
|
||||
mod diagnostics_tool;
|
||||
|
@ -24,6 +25,7 @@ use http_client::HttpClientWithUrl;
|
|||
use move_path_tool::MovePathTool;
|
||||
|
||||
use crate::bash_tool::BashTool;
|
||||
use crate::create_directory_tool::CreateDirectoryTool;
|
||||
use crate::create_file_tool::CreateFileTool;
|
||||
use crate::delete_path_tool::DeletePathTool;
|
||||
use crate::diagnostics_tool::DiagnosticsTool;
|
||||
|
@ -43,6 +45,7 @@ pub fn init(http_client: Arc<HttpClientWithUrl>, cx: &mut App) {
|
|||
|
||||
let registry = ToolRegistry::global(cx);
|
||||
registry.register_tool(BashTool);
|
||||
registry.register_tool(CreateDirectoryTool);
|
||||
registry.register_tool(CreateFileTool);
|
||||
registry.register_tool(CopyPathTool);
|
||||
registry.register_tool(DeletePathTool);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue