command_help
ledger
Our great sponsors
command_help | ledger | |
---|---|---|
8 | 107 | |
93 | 5,138 | |
- | 1.8% | |
0.0 | 7.5 | |
over 3 years ago | 1 day ago | |
Shell | C++ | |
- | 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.
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...
- A better way of displaying help text on the command line
-
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.
[0] https://github.com/learnbyexample/command_help
-
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.
-
Explainshell - A tool that takes any shell commands, looks up the syntax and options from man pages, and steps you through what it does!
I particularly wanted to lookup documentation for command options from my terminal (instead of the website), so wrote a script for it: https://github.com/learnbyexample/command_help ... Have a long pending todo list, but despite the issues, the tool is good enough for my needs.
-
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.
ledger
- Ledger
-
Ledger's NPM account has been hacked
I thought this was about https://github.com/ledger/ledger and was so confused why they'd be on NPM.
Pretty shitty of them to pick the name LedgerHQ after Ledger has already been used for years.
- Pta – the plain text accounting program
-
An open-source alternative to QuickBooks
as far as the ledger-cli google groups [1] go, they seem to think it is a proper journal file. It has been fairly tested with OFX imports (https://github.com/ledger/ledger/wiki/OFX-Import) as well bank autosync (https://github.com/egh/ledger-autosync).
In fact, someone also wrote a book on this - https://leanpub.com/personal-accounting-in-ledger/
I will defer if you are indeed building your own competing tool in this space which is better, but holding to the original point of my request - maybe it will be incremental to support your format if ledger-cli format is supported today. versus not supporting any disk format (or inventing a new one).
[1] https://groups.google.com/g/ledger-cli/search?q=double%20ent...
-
ANTLR v4 grammar to create own ledger/hledger parser
The best I found is a file from 13 years ago here https://github.com/ledger/ledger/blob/master/doc/grammar.y
- How to read code on github?
- ledger 3.3.2 released
-
Ledger FAQs to Clarify
You're looking for /r/ledgerwallet. This subreddit is about accounting, e.g. ledger for the command line.
- Ask HN: Personal Finance Management
- ledger 3.3.1 released
What are some alternatives?
hn-reader - A dark mode reader app for Hacker News
hledger - Robust, fast, intuitive plain text accounting tool with CLI, TUI and web interfaces.
pinpoint - Keystroke launcher and personal command central. Alternative to Spotlight and Alfred for Windows. Alternative to Wox, PowerToys.
GnuCash - GnuCash Double-Entry Accounting Program.
tera - Interactive Bash script terminal music radio player. Play your favorite radio station, CRUD your favorite lists, and explore new radio stations from your terminal.
beancount - Beancount: Double-Entry Accounting from Text Files.
sc2-replay-go
ledger-obsidian - Plain text accounting in Obsidian.md
ffupdate - A shellscript to automatically install and update firefox on linux.
orgmode - Orgmode clone written in Lua for Neovim 0.9+.
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.
foam - A personal knowledge management and sharing system for VSCode