Skip to content

Commit

Permalink
Documentation, comments
Browse files Browse the repository at this point in the history
  • Loading branch information
mchf committed Oct 27, 2023
1 parent 0cfc5ee commit 6f1daf3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion rust/agama-cli/src/logs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<PathBuf>) -> Result<PathBuf, io::Error> {
let default = PathBuf::from(DEFAULT_RESULT);

Expand All @@ -64,6 +64,7 @@ fn parse_dest(dest: Option<PathBuf>) -> Result<PathBuf, io::Error> {
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(
Expand Down

0 comments on commit 6f1daf3

Please sign in to comment.