;doc: bin: edits
This commit is contained in:
		
							parent
							
								
									d00827a2fc
								
							
						
					
					
						commit
						d7f3e8b50c
					
				| @ -8,43 +8,33 @@ | |||||||
| This document is the README in the hledger repo's [bin] directory,  | This document is the README in the hledger repo's [bin] directory,  | ||||||
| and is also published as [Scripts] on hledger.org. | and is also published as [Scripts] on hledger.org. | ||||||
| Here we collect hledger scripts: additional small tools which complement hledger in some way. | Here we collect hledger scripts: additional small tools which complement hledger in some way. | ||||||
| These can be | These can be: | ||||||
| 
 | 
 | ||||||
| - shell aliases or functions, often defined in your shell's startup file | - shell aliases or functions, defined eg in your shell's startup file | ||||||
| - shell script files | - shell script files | ||||||
| - programs written in languages like Python or Haskell. | - programs written in other languages, like Python or Haskell. | ||||||
|   Haskell scripts are the most powerful since they can call hledger's Haskell API. |   Haskell scripts are the most powerful since they can call hledger's Haskell API (we'll call these *hledger-integrated*). | ||||||
|  | - script files or programs  named `hledger-*`,  | ||||||
|  |   which show up in hledger's [commands list](hledger.html#commands) | ||||||
|  |   as [add-on commands](https://hledger.org/dev/hledger.html#addons). | ||||||
| 
 | 
 | ||||||
| The current bin scripts are listed below, categorised by how they invoke hledger | The most common types of hledger script are: | ||||||
| (not at all / via CLI / via Haskell API). |  | ||||||
| These are either useful in themselves, or serve as examples/templates for making your own. |  | ||||||
| The scripts named `hledger-*` are *[add-on commands](https://hledger.org/dev/hledger.html#addons)*, |  | ||||||
| which means they will show up in hledger's [commands list](hledger.html#commands). |  | ||||||
| Following the list are the [install instructions](#installing-the-bin-scripts) and other tips. |  | ||||||
| 
 | 
 | ||||||
| See also: | 1. shell aliases/functions/scripts which run hledger with custom options and arguments, eg to produce a particular report | ||||||
| - [Scripting hledger] - more on this topic | 2. Haskell add-on command scripts implementing variants of the built-in commands, or new kinds of report. | ||||||
| - [plaintextaccounting.org](https://plaintextaccounting.org) - a longer list of PTA tools (not hledger-specific) | 
 | ||||||
|  | [Scripting hledger] has more on this general topic. | ||||||
|  | 
 | ||||||
|  | The current "bin scripts" are listed in the page contents and below, categorised by how they invoke hledger. | ||||||
|  | They are either useful as is, or can be examples/inspiration for making your own. | ||||||
|  | Contributions welcome! | ||||||
|  | Following the list are [install instructions](#installing-the-bin-scripts) and other tips. | ||||||
| 
 | 
 | ||||||
| <!-- This page can be viewed on github or hledger.org, so use absolute urls. --> | <!-- This page can be viewed on github or hledger.org, so use absolute urls. --> | ||||||
| [bin]:                https://github.com/simonmichael/hledger/tree/master/bin | [bin]:                https://github.com/simonmichael/hledger/tree/master/bin | ||||||
| [Scripts]:            https://hledger.org/scripts.html | [Scripts]:            https://hledger.org/scripts.html | ||||||
| [Scripting hledger]:  https://hledger.org/scripting.html | [Scripting hledger]:  https://hledger.org/scripting.html | ||||||
| 
 | 
 | ||||||
| ## hledger-related scripts |  | ||||||
| 
 |  | ||||||
| These don't run hledger, but are related to it in some way: |  | ||||||
| 
 |  | ||||||
| ### paypaljson |  | ||||||
| 
 |  | ||||||
| [`paypaljson`](https://github.com/simonmichael/hledger/blob/master/bin/paypaljson) |  | ||||||
| downloads the last 30 days of Paypal transactions (requires a free developer account & API key). |  | ||||||
| 
 |  | ||||||
| ### paypaljson2csv |  | ||||||
| 
 |  | ||||||
| [`paypaljson2csv`](https://github.com/simonmichael/hledger/blob/master/bin/paypal2csv) (python) |  | ||||||
| converts `paypaljson`'s output to CSV, with format similar to Paypal's manually-downloaded CSV. |  | ||||||
| 
 |  | ||||||
| ## hledger-running scripts | ## hledger-running scripts | ||||||
| 
 | 
 | ||||||
| These run hledger via its command line interface, and perhaps process its output: | These run hledger via its command line interface, and perhaps process its output: | ||||||
| @ -64,6 +54,8 @@ $ fin        # list the scripts available | |||||||
| 
 | 
 | ||||||
| [`hledger-simplebal`](https://github.com/simonmichael/hledger/blob/master/bin/hledger-simplebal) | [`hledger-simplebal`](https://github.com/simonmichael/hledger/blob/master/bin/hledger-simplebal) | ||||||
| shows how to reliably report a single machine-readable number with hledger. | shows how to reliably report a single machine-readable number with hledger. | ||||||
|  | This and the other "hledger-" scripts are add-on commands. | ||||||
|  | 
 | ||||||
| ```cli | ```cli | ||||||
| $ hledger simplebal | $ hledger simplebal | ||||||
| ``` | ``` | ||||||
| @ -151,6 +143,25 @@ uses one balance report to set budget goals for another balance report. | |||||||
| [`hledger-smooth.hs`](https://github.com/simonmichael/hledger/blob/master/bin/hledger-smooth.hs) | [`hledger-smooth.hs`](https://github.com/simonmichael/hledger/blob/master/bin/hledger-smooth.hs) | ||||||
| is an incomplete attempt at automatically splitting infrequent/irregular transactions. | is an incomplete attempt at automatically splitting infrequent/irregular transactions. | ||||||
| 
 | 
 | ||||||
|  | ## hledger-related scripts | ||||||
|  | 
 | ||||||
|  | These don't run hledger, but are probably related to it in some way: | ||||||
|  | 
 | ||||||
|  | ### paypaljson | ||||||
|  | 
 | ||||||
|  | [`paypaljson`](https://github.com/simonmichael/hledger/blob/master/bin/paypaljson) | ||||||
|  | downloads the last 30 days of Paypal transactions (requires a free developer account & API key). | ||||||
|  | 
 | ||||||
|  | ### paypaljson2csv | ||||||
|  | 
 | ||||||
|  | [`paypaljson2csv`](https://github.com/simonmichael/hledger/blob/master/bin/paypal2csv) (python) | ||||||
|  | converts `paypaljson`'s output to CSV, with format similar to Paypal's manually-downloaded CSV. | ||||||
|  | 
 | ||||||
|  | ## More scripts | ||||||
|  | 
 | ||||||
|  | [plaintextaccounting.org](https://plaintextaccounting.org) has a longer list of PTA tools, not hledger-specific. | ||||||
|  | 
 | ||||||
|  | 
 | ||||||
| ## Installing the bin scripts | ## Installing the bin scripts | ||||||
| 
 | 
 | ||||||
| These [bin](https://github.com/simonmichael/hledger/tree/master/bin) scripts | These [bin](https://github.com/simonmichael/hledger/tree/master/bin) scripts | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user