cli: some new short command aliases
accounts: a balance: b print: p, txns register: r
This commit is contained in:
		
							parent
							
								
									88fdb1f465
								
							
						
					
					
						commit
						bc66c75bd2
					
				| @ -47,7 +47,7 @@ accountsmode = (defCommandMode $ ["accounts"] ++ aliases) { | |||||||
|     ,groupNamed = [generalflagsgroup1] |     ,groupNamed = [generalflagsgroup1] | ||||||
|     } |     } | ||||||
|  } |  } | ||||||
|   where aliases = [] |   where aliases = ["a"] | ||||||
| 
 | 
 | ||||||
| -- | The accounts command. | -- | The accounts command. | ||||||
| accounts :: CliOpts -> Journal -> IO () | accounts :: CliOpts -> Journal -> IO () | ||||||
|  | |||||||
| @ -288,7 +288,7 @@ balancemode = (defCommandMode $ ["balance"] ++ aliases) { -- also accept but don | |||||||
|     ,groupNamed = [generalflagsgroup1] |     ,groupNamed = [generalflagsgroup1] | ||||||
|     } |     } | ||||||
|  } |  } | ||||||
|   where aliases = ["bal"] |   where aliases = ["b","bal"] | ||||||
| 
 | 
 | ||||||
| -- | The balance command, prints a balance report. | -- | The balance command, prints a balance report. | ||||||
| balance :: CliOpts -> Journal -> IO () | balance :: CliOpts -> Journal -> IO () | ||||||
|  | |||||||
| @ -44,7 +44,7 @@ printmode = (defCommandMode $ ["print"] ++ aliases) { | |||||||
|     ,groupNamed = [generalflagsgroup1] |     ,groupNamed = [generalflagsgroup1] | ||||||
|     } |     } | ||||||
|  } |  } | ||||||
|   where aliases = [] |   where aliases = ["p","txns"] | ||||||
| 
 | 
 | ||||||
| -- | Print journal transactions in standard format. | -- | Print journal transactions in standard format. | ||||||
| print' :: CliOpts -> Journal -> IO () | print' :: CliOpts -> Journal -> IO () | ||||||
|  | |||||||
| @ -54,7 +54,7 @@ registermode = (defCommandMode $ ["register"] ++ aliases) { | |||||||
|     ,groupNamed = [generalflagsgroup1] |     ,groupNamed = [generalflagsgroup1] | ||||||
|     } |     } | ||||||
|  } |  } | ||||||
|   where aliases = ["reg"] |   where aliases = ["r","reg"] | ||||||
| 
 | 
 | ||||||
| -- | Print a (posting) register report. | -- | Print a (posting) register report. | ||||||
| register :: CliOpts -> Journal -> IO () | register :: CliOpts -> Journal -> IO () | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user