mirror of
https://github.com/kdheepak/taskwarrior-tui.git
synced 2025-08-25 17:57:19 +02:00
Revert 42d2704
This commit is contained in:
parent
d3738a55f1
commit
60560a4b31
2 changed files with 5 additions and 5 deletions
|
@ -672,9 +672,9 @@ impl TTApp {
|
|||
}
|
||||
}
|
||||
|
||||
let output = task.output().unwrap();
|
||||
let data = String::from_utf8(output.stdout).unwrap();
|
||||
let error = String::from_utf8(output.stderr).unwrap();
|
||||
let output = task.output()?;
|
||||
let data = String::from_utf8(output.stdout)?;
|
||||
let error = String::from_utf8(output.stderr)?;
|
||||
if !error.contains("The expression could not be evaluated.") {
|
||||
let imported = import(data.as_bytes())?;
|
||||
*(self.tasks.lock().unwrap()) = imported;
|
||||
|
|
|
@ -96,9 +96,9 @@ impl Config {
|
|||
|
||||
fn get_color_collection() -> Result<HashMap<String, TColor>, Box<dyn Error>> {
|
||||
let mut color_collection = HashMap::new();
|
||||
let output = Command::new("task").arg("rc.color=off").arg("show").output().unwrap();
|
||||
let output = Command::new("task").arg("rc.color=off").arg("show").output()?;
|
||||
|
||||
let data = String::from_utf8(output.stdout).unwrap();
|
||||
let data = String::from_utf8(output.stdout).expect("Unable to convert stdout to string");
|
||||
for line in data.split('\n') {
|
||||
if line.starts_with("color.") {
|
||||
let mut i = line.split(' ');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue