feat: handle meta:<name> column type pattern
Co-authored-by: aider (openai/andrew/openrouter/qwen/qwen3-coder) <aider@aider.chat>
This commit is contained in:
@@ -73,8 +73,14 @@ pub enum ColumnType {
|
||||
impl ColumnType {
|
||||
/// Returns a Result with error message if the string is not a valid ColumnType
|
||||
pub fn from_str(s: &str) -> anyhow::Result<Self> {
|
||||
if s.starts_with("meta:") {
|
||||
// Handle meta:<name> pattern - this is still a Meta column type
|
||||
Ok(ColumnType::Meta)
|
||||
} else {
|
||||
// Handle regular column types
|
||||
Ok(Self::try_from(s)?)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// impl TryFrom<&str> for ColumnType is already implemented by strum_macros
|
||||
|
||||
Reference in New Issue
Block a user