| 31 | |
| 32 | impl TaskCategory { |
| 33 | fn strings(self) -> (&'static str, &'static str) { |
| 34 | match self { |
| 35 | Self::Coding => ("coding", "Coding"), |
| 36 | Self::Debugging => ("debugging", "Debugging"), |
| 37 | Self::FeatureDev => ("feature_dev", "Feature Dev"), |
| 38 | Self::Refactoring => ("refactoring", "Refactoring"), |
| 39 | Self::Testing => ("testing", "Testing"), |
| 40 | Self::Exploration => ("exploration", "Exploration"), |
| 41 | Self::Planning => ("planning", "Planning"), |
| 42 | Self::Delegation => ("delegation", "Delegation"), |
| 43 | Self::GitOps => ("git_ops", "Git Ops"), |
| 44 | Self::BuildDeploy => ("build_deploy", "Build/Deploy"), |
| 45 | Self::Brainstorming => ("brainstorming", "Brainstorming"), |
| 46 | Self::Conversation => ("conversation", "Conversation"), |
| 47 | Self::General => ("general", "General"), |
| 48 | } |
| 49 | } |
| 50 | |
| 51 | pub fn as_str(&self) -> &'static str { |
| 52 | (*self).strings().0 |