summaryrefslogtreecommitdiff
path: root/Userland/Utilities/jp.cpp
AgeCommit message (Collapse)Author
2022-04-01Everywhere: Run clang-formatIdan Horowitz
2022-01-08jp: Use File::standard_input() when reading from stdinMarcus Nilsson
Trying to open '/dev/stdin' resulted in ENOENT. Instead use the standard_input() helper to get the File.
2021-12-04jp: Port to LibMain :^)Andreas Kling
2021-11-17AK: Make JSON parser return ErrorOr<JsonValue> (instead of Optional)Andreas Kling
Also add slightly richer parse errors now that we can include a string literal with returned errors. This will allow us to use TRY() when working with JSON data.
2021-05-31Userland: Avoid a bunch of JsonObject copiesLinus Groh
JsonValue::as_object() returns a reference.
2021-05-17Utilities: Correct non-standard assert macros includesJean-Baptiste Boric
2021-05-12LibCore+Everywhere: Move OpenMode out of IODeviceAli Mohammad Pur
...and make it an enum class so people don't omit "OpenMode".
2021-04-22Everything: Move to SPDX license identifiers in all files.Brian Gianforcaro
SPDX License Identifiers are a more compact / standardized way of representing file license information. See: https://spdx.dev/resources/use/#identifiers This was done with the `ambr` search and replace tool. ambr --no-parent-ignore --key-from-file --rep-from-file key.txt rep.txt *
2021-03-24jp: set input to stdin if there is no file specified and addCesar Torres
and customizable indentation level An example: cat /proc/net/adapters | jp Another example: cat /proc/all | jp -i 2 (indents are set to 2 spaces, instead of 4 by default)
2021-01-12Userland: Move command-line utilities to Userland/Utilities/Andreas Kling