Agents crud (#9084)
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
use std::path::PathBuf;
|
||||
|
||||
#[derive(Debug, Clone, PartialEq, Eq)]
|
||||
pub struct SourceRoot {
|
||||
pub path: PathBuf,
|
||||
pub writable: bool,
|
||||
}
|
||||
|
||||
impl SourceRoot {
|
||||
pub fn read_only(path: PathBuf) -> Self {
|
||||
Self {
|
||||
path,
|
||||
writable: false,
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user