summaryrefslogtreecommitdiff
path: root/Userland/Utilities
AgeCommit message (Collapse)Author
2022-03-24Utilities: Use default constructors/destructorsLenny Maiorani
https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#cother-other-default-operation-rules "The compiler is more likely to get the default semantics right and you cannot implement these functions better than the compiler."
2022-03-24sql: Re-prompt user for input after unrecognized commandNicholas Cellino
This fixes a bug in the SQL REPL where after a user enters an unrecognized command, the REPL would not print another "> " prompt and would not accept any more input.
2022-03-24readlink: Use StringView instead of const char*Kenneth Myhra
2022-03-24readlink: Port to LibMainKenneth Myhra
2022-03-24Userland+Tests: Convert File::read_link() from String to ErrorOr<String>Kenneth Myhra
This converts the return value of File::read_link() from String to ErrorOr<String>. The rest of the change is to support the potential of an Error being returned and subsequent release of the value when no Error is returned. Unfortunately at this stage none of the places affected can utililize our TRY() macro.
2022-03-23sql: Do not indent next line when current one is blankNicholas Cellino
Previously, if a user pressed Enter without typing a command at the SQL REPL, the next line would be automatically indented. This change makes it so we check if there were any tokens in the command before applying the indentation logic.
2022-03-22Mount: Implement wxallowed mount optionint16
2022-03-22disk_benchmark: Port to LibMainNicholas Cellino
2022-03-22readelf: Port to LibMainBrian Gianforcaro
2022-03-22purge: Port to LibMainBrian Gianforcaro
2022-03-22ping: Utilize TRY + Core::System wrappersBrian Gianforcaro
2022-03-22traceroute: Port to LibMainBrian Gianforcaro
2022-03-22true: Port to LibMainBrian Gianforcaro
2022-03-22printf: Port to LibMainBrian Gianforcaro
2022-03-22matroska: Port to LibMainBrian Gianforcaro
2022-03-20Everywhere: Move js/web/wasm tests under /home/anon/TestsBrian Gianforcaro
2022-03-20Everywhere: Move cpp-tests under /home/anon/TestsBrian Gianforcaro
2022-03-20Base: Install symlinks instead of aliasing rgrep and egrepTim Schumacher
2022-03-20grep: Recognize mode based on the program nameTim Schumacher
2022-03-19grep: Properly update match state when handling filesTim Schumacher
2022-03-19grep: Adapt maximum line size depending on file sizeTim Schumacher
Otherwise, we would never stop trying to fetch new lines if the next newline is found beyond a range that the (default sized) buffer can hold.
2022-03-19pro: Simplify the progress report logic a bitAli Mohammad Pur
The previous progress report changed far too fast to be meaningful, limit the report time to 100ms, and avoid spamming the terminal with report data that's not even readable. Also remove some dbgln()'s.
2022-03-19pro: Optionally follow 3xx responses with a Location headerAli Mohammad Pur
This is not enabled by default, and can be enabled by passing `-l`. Fixes #12714.
2022-03-19cmp: Implement cmp(1)Sam Atkins
2022-03-19Utilities: Add support for setting permissions to `install`Tim Schumacher
2022-03-19Utilities: Add support for multiple sources to `install`Tim Schumacher
2022-03-19Utilities: Add the `-c` option to `install`Tim Schumacher
2022-03-18Userland: Change static const variables to static constexprLenny Maiorani
`static const` variables can be computed and initialized at run-time during initialization or the first time a function is called. Change them to `static constexpr` to ensure they are computed at compile-time. This allows some removal of `strlen` because the length of the `StringView` can be used which is pre-computed at compile-time.
2022-03-17Utilities: Remove redundant program name element in Core::command() callItamar
This removes a redundant program name element from the arguments Vector in calls to Core::command(). The Shell's argument parsing logic tolerated the extra argument, until 83609ad.
2022-03-15Utilities: Add an lscpu utilityUndefine
2022-03-08date: Allow using a custom format stringDaniel Bertalan
This commit adds an optional string positional argument which is used a custom format string for the date.
2022-03-08Utilities/lspci: Add verbose flag to show data about PCI BARsLiav A
Use the exposed sysfs interface and print the addresses to the user if requested to.
2022-03-08Utilities/lspci: Iterate over /sys/bus/pci instead of reading /proc/pciLiav A
This opens many opportunities to add more data printed in lspci in a flexible manner - so instead of reading an ever-expanding JSON encoded file, we can add more features and let the utility read the directory entries from sysfs. This also allows not only filtering data on devices but to easily filter non-wanted devices when printing the output.
2022-03-08js: Don't try to run empty scriptsMaciej
When you try to run script containing only whitespace, it will return undefined and doesn't do anything anyway. Let's match NodeJS behavior and just don't display anything. This only applies to REPL input and not to modules.
2022-03-07LibJS: Use Vector instead of HashMap in DeclarativeEnvironmentAndreas Kling
Constructing the HashMap in DeclarativeEnvironment was by far the most expensive thing when making JavaScript function calls. As it turns out, we don't really need this to be a HashMap in the first place, as lookups are cached (by EnvironmentCoordinate) after the first access, so after that we were not even looking in the HashMap, going directly to the bindings Vector instead. This reduces function_declaration_instantiation() from 16% to 9% when idling in "Biolab Disaster". It also reduces has_binding() from 3% to 1% on the same content. With these changes, we now actually get to idle a little bit between game frames on my machine. :^)
2022-03-06LibLine+Userland: Make suggestion offsets per-suggestionAli Mohammad Pur
This allows the user to modify different parts of the input with different suggestions.
2022-03-06js: Use token offset for highlighting instead of column offsetAli Mohammad Pur
This makes it work correctly with multiline inputs as well.
2022-03-05tar: Implement support for extended headers :^)Tim Schumacher
2022-03-05tar: Use the prefixed path for listing and verbose outputTim Schumacher
2022-03-05tar: Prevent file buffering from reading uninitialized dataTim Schumacher
Regressed in 91fa10a0ab6bdb48e0f98d225bf87d77dcbce027.
2022-03-03reboot: Port to LibMainWuzado
First commit to the project! :^)
2022-03-02Utilities: Lint CMakefiles.txtcocateh
Fixed an unalphabetical order of one of the entries.
2022-03-02Utilities: Port tar to LibMaincocateh
Ported tar to LibMain and changed it to use Core::System syscalls.
2022-03-02js: Print `ArrayBuffer.maxByteLength` when presentForLoveOfCats
2022-02-28groupdel: Port to LibMainTheOddGarlic
2022-02-28useradd: Port to LibMainTheOddGarlic
2022-02-27Utilities: Port pathchk to LibMainMichał Lach
2022-02-26Utilities+Meta: Check icons in markdown-checkkleines Filmröllchen
We use the environment variable SERENITY_SOURCE_DIR to resolve and check icon links. This is a bit inconvenient as SERENITY_SOURCE_DIR needs to be set correctly before invoking the markdown checker, but as we use it through the check-markdown script anyways, I think it's not a problem.
2022-02-26Utilities: Check help:// manpage links in markdown-checkkleines Filmröllchen
2022-02-26Utilities: Perform most markdown-check link checking with URLskleines Filmröllchen
This should be much more robust against weirdly-formatted links that are still valid URLs, additionally, future URL checkers can immediately take advantage of the already-existing URL object. Note that not all markdown links are valid URLs or paths, and that that is intentional (e.g. only fragments, relative links etc.). We don't just fail when something is not a URL.