mirror of
https://github.com/nikolassv/bartib
synced 2025-03-02 05:47:11 +00:00
Show response to user for started activity
This commit is contained in:
parent
4b9e59e9c1
commit
ceb4f7da0e
1 changed files with 3 additions and 1 deletions
|
@ -27,8 +27,10 @@ pub fn start(file_name: &str, project_name: &str, activity_description: &str) {
|
|||
|
||||
let project = project::Project(project_name.to_string());
|
||||
let activity = activity::Activity::start(project, activity_description.to_string());
|
||||
file_content.push(bartib_file::Line::for_activity(activity));
|
||||
|
||||
println!("Started activity: \"{}\" ({}) at {}", activity_description, project_name, activity.start.format(conf::FORMAT_DATETIME));
|
||||
|
||||
file_content.push(bartib_file::Line::for_activity(activity));
|
||||
bartib_file::write_to_file(file_name, &file_content).expect("Could not write to file");
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue