huskies: merge 950
This commit is contained in:
@@ -38,7 +38,7 @@ pub async fn write_file(path: String, content: String, state: &SessionState) ->
|
||||
write_file_impl(full_path, content).await
|
||||
}
|
||||
|
||||
#[derive(Serialize, Debug, poem_openapi::Object)]
|
||||
#[derive(Serialize, Debug)]
|
||||
/// A directory listing entry with its name and kind (file or directory).
|
||||
pub struct FileEntry {
|
||||
pub name: String,
|
||||
|
||||
@@ -6,7 +6,7 @@ use serde::Serialize;
|
||||
use std::fs;
|
||||
use std::path::PathBuf;
|
||||
|
||||
#[derive(Serialize, Debug, poem_openapi::Object)]
|
||||
#[derive(Serialize, Debug)]
|
||||
/// A single file that matched a text search, with its match count.
|
||||
pub struct SearchResult {
|
||||
pub path: String,
|
||||
|
||||
@@ -5,7 +5,7 @@ use std::path::PathBuf;
|
||||
use std::process::Command;
|
||||
|
||||
/// Output captured from a shell command: stdout, stderr, and exit code.
|
||||
#[derive(Serialize, Debug, poem_openapi::Object)]
|
||||
#[derive(Serialize, Debug)]
|
||||
pub struct CommandOutput {
|
||||
pub stdout: String,
|
||||
pub stderr: String,
|
||||
|
||||
Reference in New Issue
Block a user