From 6f1daf38337f8e2bda19fb0cf4cedb309d0e4c53 Mon Sep 17 00:00:00 2001 From: Michal Filka Date: Fri, 27 Oct 2023 11:13:34 +0200 Subject: [PATCH] Documentation, comments --- rust/agama-cli/src/logs.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/rust/agama-cli/src/logs.rs b/rust/agama-cli/src/logs.rs index 79916148e4..ee81e0b33d 100644 --- a/rust/agama-cli/src/logs.rs +++ b/rust/agama-cli/src/logs.rs @@ -53,7 +53,7 @@ pub async fn run(subcommand: LogsCommands) -> anyhow::Result<()> { // Whatewer passed in dest formed into an absolute path with archive name // if dest is none then a default is returned // if dest is directory then a default file name for the archive will be appended -// if dest is absolute path then it is used as is with no further checks +// TODO: if dest is absolute path then it is used as is with (almost) no further checks fn parse_dest(dest: Option) -> Result { let default = PathBuf::from(DEFAULT_RESULT); @@ -64,6 +64,7 @@ fn parse_dest(dest: Option) -> Result { if buff.as_path().is_dir() { buff.push("agama-logs"); Ok(buff) + //TODO: a path with file name to be handled too // whatever else -> input error } else { Err(io::Error::new(