docopt.sh
sn
Our great sponsors
docopt.sh | sn | |
---|---|---|
5 | 22 | |
182 | 27 | |
- | - | |
0.0 | 0.0 | |
10 months ago | over 4 years ago | |
Python | Shell | |
MIT License | GNU General Public License v3.0 only |
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.
docopt.sh
-
Docopt.sh ā Command-Line Argument Parser for Bash 3.2, 4, and 5
I like that this generates readable output that could pass as hand-written code.
The docopt.sh output looks like it went through a JS minifier. Or is there a way to change that? If so I think it should default to that.
https://github.com/andsens/docopt.sh/blob/master/docs/naval_...
-
Programs are dead, and JavaScript has killed them
If you want to avoid having to write your own args parser everytime or think getopt is a pain, you should check out my little project:
https://github.com/andsens/docopt.sh
No dependencies, the code is directly inlined into your script, and you write the args parser by writing the help-text.
-
Beautiful Scripts
Honestly, I left it as a gist because even though it reduces boilerplate, getopts is still not a great flag parser (e.g. only supports single-letter flags, and no type safety or other validation aside from boolean / string). I use it in my shell environment since I have lots of shell functions and I don't care to pull in a "real" parser into my shell, but if I was writing any sort of more complex standalone script I probably wouldn't use it. Check out docopt if you haven't seen it, I've been meaning to give that a whirl at some point.
sn
- Favorite aliases?
- A Practical Guide to fzf: Shell Integration
- Note taking app?
- Iām looking for a terminal based organisation/note taking tool
- What's your favorite lightweight text editor for note-taking?
- how do you get the most out of Linux?
- Beautiful Scripts
-
UPDATE: After reading 600+ of your comments, here is the updated list of open source Linux programs mostly for beginners (thus mostly gui).
Notes; sn(my script using fzf)
- Linux programming - where to start?
- What are some scripts you have have made that you use a lot?
What are some alternatives?
docopt - This project is no longer maintained. Please see https://github.com/jazzband/docopt-ng
playerctl - š§ mpris media player command-line controller for vlc, mpv, RhythmBox, web browsers, cmus, mpd, spotify and others.
bash-cache - Transparent caching layer for bash functions; particularly useful for functions invoked as part of your prompt.
sc-im - sc-im - Spreadsheet Calculator Improvised -- An ncurses spreadsheet program for terminal
shrc - My bashrc/shrc that supports bash, zsh, busybox ash and even Dash. ( has: OS and shell detection )
smenu - smenu started as a lightweight and flexible terminal menu generator, but quickly evolved into a powerful and versatile CLI selection tool for interactive or scripting use.
xplr - A hackable, minimal, fast TUI file explorer
termgraph - a python command-line tool which draws basic graphs in the terminal
calcurse - A text-based calendar and scheduling application
kilo - A text editor in less than 1000 LOC with syntax highlight and search.
ripgrep - ripgrep recursively searches directories for a regex pattern while respecting your gitignore
glances - Glances an Eye on your system. A top/htop alternative for GNU/Linux, BSD, Mac OS and Windows operating systems.