yagit
Yet another static site generator for Git 🙀️
- Commit
- f2e71b7e12f6f6367d370cf98c8dacbb2fc09b07
-
- Parent
- 7819a086e0404233fff17a0a0d923da7b89bd7f1
-
- Author
- Pablo <pablo-pie@riseup.net>
- Date
Added a warning
Added a warning about the fact the application does not clean up the HTML files from deleted repos
Diffstats
1 files changed, 19 insertions, 1 deletions
Status |
Name |
Changes |
Insertions |
Deletions |
Modified |
src/main.rs |
2 files changed |
19 |
1 |
diff --git a/src/main.rs b/src/main.rs
@@ -28,7 +28,13 @@ use git2::{
use time::{DateTime, Date, FullDate};
use command::{Cmd, SubCmd, Flags};
-use config::{TREE_SUBDIR, BLOB_SUBDIR, COMMIT_SUBDIR};
+use config::{
+ OUTPUT_PATH,
+ PRIVATE_OUTPUT_ROOT,
+ TREE_SUBDIR,
+ BLOB_SUBDIR,
+ COMMIT_SUBDIR
+};
use escape::Escaped;
#[cfg(not(debug_assertions))]
@@ -1744,6 +1750,18 @@ fn main() -> ExitCode {
return ExitCode::FAILURE;
}
+ if cmd.flags.private() {
+ warnln!(
+ "Did not remove \"{OUTPUT_PATH}/{PRIVATE_OUTPUT_ROOT}{repo_name}\". Run \" rm '{OUTPUT_PATH}/{PRIVATE_OUTPUT_ROOT}{repo_name}' if necessary",
+ repo_name = repo.name,
+ );
+ } else {
+ warnln!(
+ "Did not remove \"{OUTPUT_PATH}/{repo_name}\". Run \"rm '{OUTPUT_PATH}/{repo_name}'\" if necessary",
+ repo_name = repo.name,
+ );
+ }
+
log::finished(start.elapsed());
}
}