Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!
List Files¶
There are 2 ways to list files using ripgrep. The first way is file name (globbing pattern) based and the second way is file content (regex pattern) based.
Shell Command Parser
Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!
Golang Package - sh
sh is a shell parser, formatter, and interpreter. Supports POSIX Shell, Bash, and mksh. Requires Go 1.17 or later.
Python Package - shlex
shlex makes it easy to …
Run Shell Command in Rust
Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!
Parse Command Line Arguments in Go
Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!
-
flag is a Go standard library for parsing command-line arguments. It is simple but limited. For more discussions, please refer to Parse Command Line Arguments Using Flag in Go .
Parse Command Line Arguments Using Flag in Go
Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!
It is suggested that you use the Golang module spf13/cobra (instead of the standard Golang library flag) for parsing command-line arguments.
Run System Command in Go
Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!