taskwarrior-tui/src/context.rs
Dheepak Krishnamurthy 2250c20cfa Add context switcher
2020-11-02 23:48:50 -07:00

26 lines
546 B
Rust

use std::cmp;
use tui::{
buffer::Buffer,
layout::{Alignment, Rect},
style::{Modifier, Style},
text::{Span, Spans, Text},
widgets::{Block, BorderType, Borders, Clear, Paragraph, StatefulWidget, Widget},
};
#[derive(Debug, Clone, Default)]
pub struct Context {
pub name: String,
pub description: String,
pub active: String,
}
impl Context {
pub fn new(name: String, description: String, active: String) -> Self {
Self {
name,
description,
active,
}
}
}