cc-switch-tui 0.2.2

All-in-One Assistant for Claude Code, Codex, Gemini, OpenCode, OpenClaw & Hermes
Documentation
1
2
3
4
5
6
7
use crate::cli::i18n::texts;
use crate::AppError;

pub fn open_external_editor(initial_content: &str) -> Result<String, AppError> {
    edit::edit(initial_content)
        .map_err(|e| AppError::Message(format!("{}: {}", texts::editor_failed(), e)))
}