askr 0.1.7

Interactive CLI input tool with real-time validation and choice menus
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use super::OutputFormatter;
use crate::error::Result;
use crate::validation::ValidationSummary;

/// Raw output formatter - outputs the raw value without any validation
pub struct RawFormatter;

impl OutputFormatter for RawFormatter {
    fn format(&self, summary: &ValidationSummary) -> Result<String> {
        // For raw format, always output the value regardless of validation
        Ok(summary.value.clone())
    }
}