You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* implement magic strings
* updated changelog
* put back u-prefixes
* missed u
* more u's
* more u's
* add magic string description to readme
* - refactor duplicate logic in _parse_{min,max}_timestamp into _parse_timestamp
- fix tests to use new DateArgumentException
Copy file name to clipboardExpand all lines: CHANGELOG.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -18,6 +18,7 @@ how a consumer would use the library (e.g. adding unit tests, updating documenta
18
18
-`--filename` flag renamed to `--file-name`.
19
19
-`--filepath` flag renamed to `--file-path`.
20
20
-`--processOwner` flag renamed to `--process-owner`
21
+
-`-b|--begin` and `-e|--end` arguments now accept shorthand date-range strings for days, hours, and minute intervals going back from the current time (e.g. `30d`, `24h`, `15m`).
21
22
- Default profile validation logic added to prevent confusing error states.
Copy file name to clipboardExpand all lines: README.md
+20-3Lines changed: 20 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -61,14 +61,31 @@ Using the CLI, you can query for events and send them to three possible destinat
61
61
To print events to stdout, do:
62
62
63
63
```bash
64
-
code42 security-data print -b 2020-02-02
64
+
code42 security-data print -b <begin_date>
65
65
```
66
66
67
67
Note that `-b` or `--begin` is usually required.
68
-
To specify a time, do:
68
+
69
+
And end date can also be given with `-e` or `--end` to query for a specific date range (if end is not passed, it will get all events up to the present time).
70
+
71
+
To specify a begin/end time, you can pass a date or a date w/ time as a string:
_FORMAT_VALUE_ERROR_MESSAGE=u"input must be a date in YYYY-MM-DD or YYYY-MM-DD HH:MM:SS format."
8
+
_FORMAT_VALUE_ERROR_MESSAGE=u"input must be a date in YYYY-MM-DD or YYYY-MM-DD HH:MM:SS format, or a short value in days, hours, or minutes (e.g. 30d, 24h, 15m)"
0 commit comments