minor cleanup of transaction examples
var cmd = &cobra.Command{
Use: "list [flags]",
Short: "List transactions",
- Example: `* List transactions:
+ Example: `
+* List transactions:
- gt transaction list
+ $ gt transaction list
* List all transactions by setting limit to 0:
- gt transactions list --limit=0
+ $ gt transactions list --limit=0
* List transactions and output in json:
- gt transaction list --output json
+ $ gt transaction list --output json
* List transactions for account guid:
- gt transaction list --account 9b1d2bc513da4076b236aee6114b21a7
+ $ gt transaction list --account 9b1d2bc513da4076b236aee6114b21a7
* List transactions for account name:
- gt transaction list --account expenses:dining:pizza
+ $ gt transaction list --account expenses:dining:pizza
* List transactions for multiple accounts:
- gt transaction list --account expenses:dining --account expenses:takeaway
+ $ gt transaction list --account expenses:dining --account expenses:takeaway
* List transactions for account tree and exclude totals:
- gt transaction list --account expenses:petrol --include-totals=false
+ $ gt transaction list --account expenses:petrol --include-totals=false
* List transactions with a date range:
- gt transaction list --start-post-date 2025-01-01 --end-post-date 2025-03-31
+ $ gt transaction list --start-post-date 2025-01-01 --end-post-date 2025-03-31
* List transactions within a date range and with a description that contains %Pizza:
- gt transaction list --start-post-date 2024-01-01 --end-post-date 2024-12-31 --description-like "%Pizza"
+ $ gt transaction list --start-post-date 2024-01-01 --end-post-date 2024-12-31 --description-like "%Pizza"
`,
RunE: func(cmd *cobra.Command, args []string) error {
var err error