- Commit
- 7071b124b374870f3d7e0f3fe184dcc5ea1d0bf0
- Parent
- 3fadfdacb3ae1745aa362084d95b8234344e3ecb
- Author
- Pablo <pablo-pie@riseup.net>
- Date
Renamed a flag
Yet another static site generator for Git 🙀️
Renamed a flag
1 files changed, 6 insertions, 8 deletions
Status | Name | Changes | Insertions | Deletions |
Modified | src/main.rs | 2 files changed | 6 | 8 |
diff --git a/src/main.rs b/src/main.rs @@ -99,10 +99,8 @@ impl RepoInfo { { let repo = match Repository::open(&path) { Ok(repo) => repo, - Err(e) => { - // TODO: improve the error message here? - errorln!("Could not open repository at {:?}: {err}", path, - err = e.message()); + Err(_) => { + errorln!("Could not open repository at {path:?}"); return Err(()); } }; @@ -340,7 +338,7 @@ impl<'repo> RepoRenderer<'repo> { .expect("README contents should be UTF-8") .to_string(); - // TODO: parse the license from content? + // TODO: [feature]: parse the license from content? license = Some(content); } } @@ -651,7 +649,7 @@ impl<'repo> RepoRenderer<'repo> { root = self.output_root, name = Escaped(&self.name), path = Escaped(&path.to_string_lossy()))?; - // TODO: print the size differently for larger blobs? + // TODO: [feature]: print the size differently for larger blobs? writeln!(&mut f, "<td align=\"right\">{}B</td>", blob.size())?; writeln!(&mut f, "<td align=\"right\">{}</td>", mode)?; writeln!(&mut f, "</tr>")?; @@ -1462,7 +1460,8 @@ impl Cmd { Some(arg) if arg == "render-batch" => break CmdTag::RenderBatch, Some(arg) if arg == "render" => break CmdTag::Render, - Some(arg) if arg == "-B" => { + // TODO: documment these flags + Some(arg) if arg == "--full-build" => { full_build = true; } Some(arg) if arg == "--output-root" => { @@ -1499,7 +1498,6 @@ impl Cmd { let output_path = if let Some(dir) = args.next() { dir } else { - // TODO: make this message better errorln!("No output path provided"); log::usage(&program_name); return Err(());