use crate::api::WorkItemIdentifier;

/// Identifies which kind of Plane entity a command should operate on.
/// Parsed from CLI positional args: either a bare work item ID like "NRO-123"
/// or an entity type keyword followed by a name (e.g. "project nro", "cycle Sprint 4").
pub enum EntityTarget {
    /// A specific work item identified by project prefix and sequence number
    WorkItem(WorkItemIdentifier),
    /// A project identified by its short slug (e.g. "nro")
    Project(String),
    /// A workspace identified by its slug (e.g. "jakutainc")
    Workspace(String),
    /// A cycle identified by its display name within the active project
    Cycle(String),
    /// A module identified by its display name within the active project
    Module(String),
}
