summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-02-22 09:42:49 -0600
committerJeff Carr <[email protected]>2025-02-22 09:42:49 -0600
commit1d4817f6af2e1f11fdba5caffa079524c01f5eea (patch)
tree52948248e3535804336fb015d41a52419e1a4cc0 /main.go
parentec11efc34763260e7c93f883ebb7b6ceb502dfb2 (diff)
command line option to rebuildv0.22.95v0.22.94
Diffstat (limited to 'main.go')
-rw-r--r--main.go22
1 files changed, 5 insertions, 17 deletions
diff --git a/main.go b/main.go
index dcb5803..03bfc56 100644
--- a/main.go
+++ b/main.go
@@ -79,6 +79,11 @@ func main() {
okExit("")
}
+ if argv.BuildForge {
+ buildForge()
+ okExit("")
+ }
+
if argv.Checkout != nil {
if err := doCheckout(); err != nil {
badExit(err)
@@ -124,23 +129,6 @@ func main() {
okExit("")
}
- if argv.Show != "" {
- repo := me.forge.FindByGoPath(argv.Show)
- me.forge.HumanPrintRepo(repo)
- // newt := repo.Times.LastUpdate.AsTime()
- // oldt := repo.Times.MtimeHead.AsTime()
- if repo.Times.LastUpdate == nil {
- log.Info("SHOULD RUN Reload() here")
- repo.Reload()
- me.forge.HumanPrintRepo(repo)
- } else {
- if repo.Times.LastUpdate.Seconds < repo.Times.MtimeHead.Seconds {
- log.Info("SHOULD RUN Reload() here")
- }
- }
- okExit("")
- }
-
if argv.GitFetch != nil {
doGitFetch()
okExit("")