pub fn start_task(config: &Config, args: &[String]) -> Result<()>
Expand description
Start a task. Add an entry to the logfile marked with the current date and time and the supplied task description.
ยงErrors
- Return
PathError::FilenameMissing
if thefile
has no filename. - Return
PathError::InvalidPath
if the path part offile
is not a valid path. - Return
PathError::FileAccess
if the file cannot be opened or created. - Return
PathError::FileWrite
if the function fails to append to the file.