Commit Graph

86 Commits

Author SHA1 Message Date
Daniel Hofstetter
7c7809ec99 Merge pull request #167 from fuad1502/dmesg-filter
Support `dmesg` filtering options (`--facility`, `--level`, `--since`, and `--until` options).
2024-12-15 14:43:43 +01:00
Fuad Ismail
e6364af9c6 dmesg: parse unknown facility and level as an Unknown. 2024-12-15 02:33:28 +07:00
Fuad Ismail
5a333b463e dmesg: remove unnecessary 'remove_enclosing_quotes' function. 2024-12-14 22:28:27 +07:00
Fuad Ismail
5335f1bc2b dmesg: simplify expression.
Co-authored-by: Daniel Hofstetter <daniel.hofstetter@42dh.com>
2024-12-14 11:43:39 +07:00
Sylvestre Ledru
a84726cfcb Merge pull request #159 from cakebaker/bump_tabled
Bump `tabled` and adapt `lsmem` to a renamed struct
2024-12-13 17:41:00 +01:00
Fuad Ismail
9e99aad01b dmesg: support single quoted argument for since/until options. 2024-12-12 13:17:57 +07:00
Fuad Ismail
b90751119d tests/dmesg: use fixed offset time argument in test. 2024-12-12 12:54:58 +07:00
Fuad Ismail
48c4f78088 dmesg: set to fixed timezone in test. 2024-12-11 15:48:51 +07:00
Fuad Ismail
a35c00b0e4 dmesg: implement since/until filter. 2024-12-11 14:48:45 +07:00
Fuad Ismail
c7ff9cd553 dmesg: modify is_record_in_set to accept Option. 2024-12-11 12:04:15 +07:00
Fuad Ismail
fb77a356ca dmesg: parse since/until option values. 2024-12-11 11:32:45 +07:00
Fuad Ismail
8cd9f9d89f dmesg: add since/until options. 2024-12-11 10:42:07 +07:00
Fuad Ismail
07e01a5276 dmesg: cache record regex. 2024-12-09 17:59:48 +07:00
Fuad Ismail
e5ee286c7a dmesg: implement level & facility filters. 2024-12-09 17:59:48 +07:00
Fuad Ismail
db42f300b0 dmesg: add facility & level argument. 2024-12-09 17:59:47 +07:00
Fuad Ismail
6adabf4e7d dmesg: use RecordIterator for Dmesg print. 2024-12-09 17:53:41 +07:00
Fuad Ismail
2f803ceae3 dmesg: implement RecordIterator. 2024-12-07 09:27:21 +07:00
Fuad Ismail
e965074baf dmesg: avoid using insert for better readability. 2024-11-30 22:15:38 +07:00
Fuad Ismail
f3de668f7f dmesg: add file header. 2024-11-30 22:07:32 +07:00
Fuad Ismail
c3c80c4bcd dmesg: refactor to avoid duplicate code.
Co-authored-by: Daniel Hofstetter <daniel.hofstetter@42dh.com>
2024-11-30 22:03:03 +07:00
Fuad Ismail
dff0a8ea0b dmesg: change Record timestamp_us data type to i64. 2024-11-27 16:05:31 +07:00
Fuad Ismail
c4944f4c85 dmesg: remove int to float conversion for adding sign. 2024-11-27 15:59:03 +07:00
Fuad Ismail
f621687dd6 dmesg: use utmpx to get boot time. 2024-11-27 00:45:13 +07:00
Fuad Ismail
8efc8a01c2 dmesg: support delta time-format. 2024-11-26 23:34:18 +07:00
Fuad Ismail
2669aaae40 dmesg: support reltime time-format. 2024-11-26 23:12:15 +07:00
Fuad Ismail
c13e2f7b5a dmesg: support iso time-format. 2024-11-26 10:57:45 +07:00
Fuad Ismail
9f665333cf dmesg: corrected fixed boot time value. 2024-11-26 10:56:52 +07:00
Fuad Ismail
a99abce425 dmesg: support ctime & notime time-format. 2024-11-25 19:54:33 +07:00
Fuad Ismail
49bd8ead50 dmesg: parse time-format command line argument. 2024-11-25 13:26:35 +07:00
Fuad Ismail
c893226fe8 dmesg: support normal print with raw time format. 2024-11-25 13:10:30 +07:00
Fuad Ismail
7dc7924915 dmesg: add time-format command arg. 2024-11-25 09:59:52 +07:00
Daniel Hofstetter
567e8bf7a9 lsmem: adapt code to changes in tabled
Rename "Disable" to "Remove"
2024-11-23 08:49:32 +01:00
Fuad Ismail
d796cb5224 dmesg: return UResult in Record constructor instead of panic. 2024-11-18 11:52:47 +07:00
Fuad Ismail
df3fb0674d dmesg: use functional approach to read lines. 2024-11-18 11:28:36 +07:00
Fuad Ismail
e5441aa0ba dmesg: add context message to UIoError. 2024-11-17 10:02:11 +07:00
Fuad Ismail
395c634c0c dmesg: add about and usage to command. 2024-11-17 00:09:55 +07:00
Fuad Ismail
635c6955c3 dmesg: add help message to -K and -J options. 2024-11-17 00:00:34 +07:00
Fuad Ismail
e321aeefc3 dmesg: add license header. 2024-11-16 23:43:06 +07:00
Fuad Ismail
16b12c66f2 dmesg: remove unnecessary static lifetime specifier. 2024-11-15 20:05:05 +07:00
Fuad Ismail
62d6c6d509 dmesg: remove underscore from used fields. 2024-11-15 19:15:39 +07:00
Fuad Ismail
d1066420e7 dmesg: implement print json. 2024-11-15 19:05:31 +07:00
Fuad Ismail
a044bece47 dmesg: implement parse function. 2024-11-15 14:56:49 +07:00
Fuad Ismail
fa52b0ed62 dmesg: parse arguments and create essential structs. 2024-11-15 09:48:48 +07:00
Fuad Ismail
44d942da4d dmesg: initialize empty dmesg crate. 2024-11-14 22:47:43 +07:00
Gustavo Noronha Silva
61756085fa Add setsid implementation 2024-10-06 10:36:37 -03:00
Andy
49fc7ff3ca Add last Utility (#65) 2024-09-19 17:43:18 +02:00
Yang Hau
6f7dc259c9 lsmem: Add option raw 2024-08-27 20:06:05 +08:00
Yang Hau
422e21106f lsmem: Add option pairs 2024-08-26 01:52:38 +08:00
Yang Hau
3aef200dc1 lsmem: Add option json 2024-08-26 01:32:41 +08:00
Yang Hau
f83d22b3ea lsmem: Add noheadings 2024-08-26 01:03:10 +08:00