systemprompt-cli 0.1.18

systemprompt.io OS - CLI for agent orchestration, AI operations, and system management
Documentation
1
2
3
4
5
6
7
8
9
10
11
//! CLI value parsers for fail-fast validation at command line boundaries.

use systemprompt_identifiers::{Email, ProfileName};

pub fn parse_profile_name(s: &str) -> Result<ProfileName, String> {
    ProfileName::try_new(s).map_err(|e| e.to_string())
}

pub fn parse_email(s: &str) -> Result<Email, String> {
    Email::try_new(s).map_err(|e| e.to_string())
}