Our great sponsors
bat | jq | |
---|---|---|
169 | 289 | |
40,223 | 24,541 | |
- | - | |
7.2 | 1.7 | |
9 days ago | 18 days ago | |
Rust | C | |
Apache License 2.0 | GNU General Public License v3.0 or later |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
bat
-
Recommendations on file/dir/module structure, common dependencies, and/or anti-patterns for writing CLI tool in Rust
I'm quite new to Rust, and have been trying to learn more by working on some real solution I could see myself benefitting from, which happens to be a CLI tool at this time. I know there are some great tools written in Rust which I use day to day (such as Starship, bat, exa, etc.), but I wanted to hear experts' suggestions / recommendations on any project I should check out for clean, clear, and extensible structure (or lack thereof), and any dependencies I should start with / avoid.
-
bsdutils: Alternative to GNU coreutils using software from FreeBSD
I think you’re conflating different projects.
There are projects that aim for a better user experience, with better command line interface, defaults, performance and UI. These are of course breaking changes and the programs can’t be used as drop in replacement. Some examples are
- ls => exa (https://github.com/ogham/exa)
- grep => ripgrep (https://github.com/BurntSushi/ripgrep)
- cat => bat (https://github.com/sharkdp/bat)
- tree => broot (https://github.com/Canop/broot)
The person you’re replying to was speaking of a different project - uutils (https://github.com/uutils/coreutils). These are drop in replacements with identical interfaces (modulo bugs).
-
Midnight Commander is MIA; any command line based twin pane file manager recommendations?
bat - A cat clone with wings, very nice file catter
-
Projects/Crates to Contribute To?
Bat looks so cool!! https://github.com/sharkdp/bat - cat with syntax highlighting in Rust.
-
Oh, you thought that function was unreachable?
I think they have aliased the bat util. https://github.com/sharkdp/bat
- Trial and error FreeBSD
- What little CLI tools do you know, that do something useful and faster than regular commands? For example DUF.
-
Lightly Riced, Very Usable Pop! Install
bat (batcat)
-
Show HN: Ov – feature rich terminal pager
- https://github.com/sharkdp/bat (uses `less` under the hood, syntax highlighting and git diffs)
But it can be used as a bat(https://github.com/sharkdp/bat) pager.
jq
-
So, I did a thing...
Here's bash-notes, it's written 100% in bash and the only dependency it has is jq, it can add, edit, remove or list notes, it uses VIM or whatever editor you may like, you can specify which terminal emulator to use and what options to pass when you execute it.
-
open JSON file slow
To the best of my knowledge, Vim's problems with large files are usually about long lines. If your JSON file is all on one line, that's going to be a much, much bigger problem than if it's formatted on many lines. Try formatting the JSON with jq . beforehand: jq. See if there's a difference.
-
Miller: Like Awk, sed, cut, join, and sort for CSV, TSV, and tabular JSON
NB. there is also an entry in the `jq` cookbook for parsing CSVs into arrays of objects (and keeping numbers as numbers, dealing with nulls, etc) https://github.com/stedolan/jq/wiki/Cookbook#convert-a-csv-f...
the obvious missing reference is jq https://github.com/stedolan/jq
-
IAM Roles Anywhere: Introduction and Demo
jq
- Nushell.sh ls – where size > 10mb – –sort-by modified
-
Portal - a modern file transfer utility 🌌✨
The server log output is JSON. Super-recommended to run it through jq!
-
Out of curiosity, what is your best script you can showcase?
If they had used an .nvmrc file instead, I could run nvm use to ensure I'm using the correct node version. In order to get this same type of behavior I use a function I wrote called nvmpe that uses jq to get the node version from the value from package.json and then nvm to set my node version.
-
Announcing serde-query 0.2.0
Hi! It's more like writing jq in your struct definitions and executing them with serde::Deserialize.
-
The Missing Semester of Your CS Education
I would add jq to the data wrangling section https://stedolan.github.io/jq/
Being moderately competant at jq on a team that doesn't know jq is a super power.
What are some alternatives?
yq - Command-line YAML, XML, TOML processor - jq wrapper for YAML/XML/TOML documents
dasel - Select, put and delete data from JSON, TOML, YAML, XML and CSV files with a single tool. Supports conversion between formats and can be used as a Go package.
vim-colors-solarized - precision colorscheme for the vim text editor
gojq - Pure Go implementation of jq
json5 - JSON5 — JSON for Humans
jp - Validate and transform JSON with Bash
exa - A modern replacement for ‘ls’.
iTerm2-Color-Schemes - Over 250 terminal color schemes/themes for iTerm/iTerm2. Includes ports to Terminal, Konsole, PuTTY, Xresources, XRDB, Remmina, Termite, XFCE, Tilda, FreeBSD VT, Terminator, Kitty, MobaXterm, LXTerminal, Microsoft's Windows Terminal, Visual Studio, Alacritty
miller - Miller is like awk, sed, cut, join, and sort for name-indexed data such as CSV, TSV, and tabular JSON
jmespath.py - JMESPath is a query language for JSON.
awesome-zsh-plugins - A collection of ZSH frameworks, plugins, themes and tutorials.
nushell - A new type of shell