xcstrings-mcp 0.4.0

MCP server for iOS/macOS .xcstrings localization file management
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
pub mod fs;

use std::path::Path;
use std::time::SystemTime;

use crate::error::XcStringsError;

pub trait FileStore: Send + Sync {
    fn read(&self, path: &Path) -> Result<String, XcStringsError>;
    fn write(&self, path: &Path, content: &str) -> Result<(), XcStringsError>;
    fn modified_time(&self, path: &Path) -> Result<SystemTime, XcStringsError>;
    fn exists(&self, path: &Path) -> bool;
    fn create_parent_dirs(&self, path: &Path) -> Result<(), XcStringsError>;
}