command_help
smenu
Our great sponsors
command_help | smenu | |
---|---|---|
8 | 37 | |
88 | 2,320 | |
- | - | |
0.0 | 8.2 | |
over 3 years ago | 28 days ago | |
Shell | C | |
- | Mozilla Public License 2.0 |
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.
command_help
-
Ask HN: What do you use to make CLIs?
I use a lot of CLI tools, but haven't written many for myself. Mostly, aliases/functions and some scripts in Bash/Python.
Extract details for command options from man/help: https://github.com/learnbyexample/command_help/blob/master/c...
cut-like syntax for field manipulations with regexp, negative indexing, etc: https://github.com/learnbyexample/regexp-cut/blob/main/rcut
simple calculator using python syntax: https://learnbyexample.github.io/practice_python_projects/ca...
-
Enter a command to see help text for each arg
I wrote a Linux CLI tool [0] that parses the man/help pages to extract option details. Works most of the time for me, but there are plenty of corner cases that don't work.
-
What tools / utilities have you written that you use regularly?
https://github.com/learnbyexample/command_help to extract help text from builtin commands and man pages, ex:
-
What's a program you made that you actually use regularly?
https://github.com/learnbyexample/command_help is big enough to warrant a repo, examples, limitations, etc. I had a list of todo items to improve the script, but after years of usage, I'm fine with the limitations since I rarely encounter them. This helps me to extract documentation of particular options, here's an example:
-
Save Time Using Manop to Print Only Selected Content From the Man Page using Manop
I wrote one a few years back (https://github.com/learnbyexample/command_help). It has a few corner case issues, but works most of the time for me and supports multiple options to be retrieved.
-
Testing
When I start a project, I usually try to write the programs incrementally. Say I need to iterate over files from a directory. I will make sure that portion is working (usually with print() statements), then add another feature — say file reading and test that and so on. This reduces the burden of testing a large program at once at the end. And depending upon the nature of the program, I'll add a few sanity tests at the end. For example, for my command_help project, I copy pasted a few test runs of the program with different options and arguments into a separate file and wrote a program to perform these tests programmatically whenever the source code is modified.
smenu
-
Lineselect 0.1.6
You can also use smenu (https://github.com/p-gen/smenu) to make these and many other selections.
-
smenu clean window effect
Here are the relevant bits of the source (in [smenu.c](https://github.com/p-gen/smenu/blob/master/smenu.c):
-
So you've installed `fzf`. Now what?
Here are the bindings for smenu-history, I found somewhere at the site:
-
I created a full POSIX sh menu.
I suggest a name change, so your smenu, isn't confused with this smenu, which is a totally different entity, can present the menus in columns, lines and tabular fashion, has hotkey support, and so much more, I don't know if it is POSIX compliant, but it can also be used with sh, and just not bash.
-
Recommendations for CLI / terminal utilities for dialog or confirmation prompts?
smenu for menu and dialogs
- smenu v1.1.0 is released, now with mouse support.
-
yank: copy terminal output to clipboard
The same things with smenu:
-
NOT-fuzzy line pickers
You might take a look at: https://github.com/p-gen/smenu
-
List of CLI programs (follow-up to GUI). Feel free to make suggestions.
smenu
What are some alternatives?
RAGENativeUI
kks - Handy Kakoune companion.
hx - Hex editor for the terminal using plain C99 + POSIX libs.
notes - notes on the tools in my Unix/Linux toolbox, dotfiles, etc
cleanit - Cleanit cleanup your ~/Downloads and ~/.Trash directory, and set the cleanup schedule on your MacOS.
sn - Simple Notes using fzf
wifi - Command line tool for managing wifi connections using iwd and dmenu
LearnC - Contains source code and resources for the Ebook Learn C Games Programming For Beginners Windows edition.
pinpoint - Keystroke launcher and personal command central. Alternative to Spotlight and Alfred for Windows. Alternative to Wox, PowerToys.
ledger - Double-entry accounting system with a command-line reporting interface
dotfiles - My personal dotfiles
hn-reader - A dark mode reader app for Hacker News