Sh

Shifu – A pure POSIX shell framework to create powerful CLIs

Hacker News

Shifu – A pure POSIX shell framework to create powerful CLIs

The startup I work for has an internal, bash-based, cli that basically amounts to shared aliases with a common entrypoint. As the number of aliases has grown, I've had a desire to group functionality together in subcommands, add more help strings, and have better tab completion. I know I could convert it to, e.g., a python script, but I was curious what was possible if we continued to use bash. I couldn't find anything that solved those problems without lots of extra machinery. I understand why, shell scripts are generally not long, and focused on a dedicated task; adding cli features to them is mostly unnecessary, many might even discourage it for many valid reasons. Nonetheless, I considered writing this functionality myself, but that felt like a poor use of company time. So I started toying with what a framework to handle those concerns entirely in shell script would look like on the side. Thus, shifu was born. I've been working on it off and on for about a year, and think I've got a reasonable alpha release, so thought I'd share.

Share card

Actual performance

7points
2comments
Made the leaderboard

Launch Intel predictions

Analyze your own launch →
Product HuntOn track for Day 1 leaderboard · Strong signals: mac · Missing: agents, macos, agent
81%81% predicted probability of success on Product Hunt, based on ML models trained on real launch data.
best fitHighest predicted score across all platforms for this description.
Indie HackersFits the IH revenue-focused audience · Strong signals: started · Missing: supports, reddit linkedin, podcasting
79%79% predicted probability of success on Indie Hackers, based on ML models trained on real launch data.
Hacker NewsStrong engagement from HN community · Strong signals: ide, io · Missing: https docs, excited, just released
63%63% predicted probability of success on Hacker News, based on ML models trained on real launch data.
nativeThis product was originally launched on this platform.
TrustMRRLess likely to generate early MRR · Missing: mobile apps, ios, personal
46%46% predicted probability of success on TrustMRR, based on ML models trained on real launch data.
AppSumoMay struggle as an AppSumo deal · Missing: plus, platform, intuitive
34%34% predicted probability of success on AppSumo, based on ML models trained on real launch data.
Acquire.comPre-revenue stage for this audience · Missing: arr, mrr, revenue
14%14% predicted probability of success on Acquire.com, based on ML models trained on real launch data.
BetaListMay not resonate with beta-testers · Missing: web3, chat, crypto
0%0% predicted probability of success on BetaList, based on ML models trained on real launch data.

Correct prediction on native model

Similar products

Ex
Extensible framework to manage Microservices/Multirepos in pure shell63%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Extensible framework to manage Microservices/Multirepos in pure shell

Hacker News33
Sh
Shell Framework for CGI59%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Shell Framework for CGI

Hacker News2
Ho
How to compile C/C++ for WASM, pure Clang, no libs, no framework73%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

How to compile C/C++ for WASM, pure Clang, no libs, no framework

Hacker News217
Cu
Cutestrap Two. A Powerful 2.7KB Pure CSS Framework70%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Cutestrap Two. A Powerful 2.7KB Pure CSS Framework

Hacker News21
'p
'p' – a simple but powerful Pomodoro tracker in pure Shell57%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

'p' – a simple but powerful Pomodoro tracker in pure Shell

Hacker News10
Ke
KeraSH, a ML Framework in Shell61%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

KeraSH, a ML Framework in Shell

Hacker News15
Fu
Functional Shell Developed with LiveScript48%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Functional Shell Developed with LiveScript

Hacker News11
cu
curl-to-shell russian roulette64%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

curl-to-shell russian roulette

Hacker News2
Sh
Shell Roulette55%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Shell Roulette

Hacker News1
Ye
Yeash – Yet another abstraction for shell54%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Yeash – Yet another abstraction for shell

Hacker News2