commit ca426ad963867dc9a8223817e4f70d5a96bb5d5a
parent 75b1d88cd4d5e1b093168d967beba3cb605996f3
Author: Oliver Lowe <oliver.lowe@audinate.com>
Date: Tue, 4 Feb 2025 09:12:22 +1100
cmd/jiraexport: by default print all messages if no modified time filter set
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/cmd/jiraexport/jiraexport.go b/cmd/jiraexport/jiraexport.go
@@ -83,7 +83,7 @@ func copyMessage(w io.Writer, msg *mail.Message) (n int, err error) {
const usage string = "jiraexport [-d duration] [-u url] issue [...]"
-var since = flag.Duration("d", 7*24*time.Hour, "exclude activity older than this duration")
+var since = flag.Duration("d", 0, "exclude activity older than this duration")
var apiRoot = flag.String("u", "http://[::1]:8080", "base URL for the JIRA API")
var onlyComments = flag.Bool("c", false, "only print comments")
@@ -155,7 +155,7 @@ func main() {
log.Println(err)
continue
}
- if time.Since(info.ModTime()) >= *since {
+ if *since != 0 && time.Since(info.ModTime()) >= *since {
continue
}
f, err := fsys.Open(path.Join(dir, d.Name()))