pub enum OutputFormat {
Text,
ClaudeStreamJson,
CodexJsonl,
PiJson,
}Expand description
What a CLI prints on stdout when SCV runs it, and so how SCV reads its reply, usage, and failure out of it.
Variants§
Text
Plain text: stdout is the reply.
ClaudeStreamJson
Claude Code --output-format stream-json --verbose: one JSON event per
line, ending with a result event.
CodexJsonl
codex exec --json: JSON events per line; SCV also passes -o <file>
so the final message survives an unparsable stream.
PiJson
pi --mode json: JSON events per line; the reply is the last
assistant message_end.
Trait Implementations§
Source§impl Clone for OutputFormat
impl Clone for OutputFormat
impl Copy for OutputFormat
Source§impl Debug for OutputFormat
impl Debug for OutputFormat
impl Eq for OutputFormat
Source§impl PartialEq for OutputFormat
impl PartialEq for OutputFormat
impl StructuralPartialEq for OutputFormat
Auto Trait Implementations§
impl Freeze for OutputFormat
impl RefUnwindSafe for OutputFormat
impl Send for OutputFormat
impl Sync for OutputFormat
impl Unpin for OutputFormat
impl UnsafeUnpin for OutputFormat
impl UnwindSafe for OutputFormat
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more