Add query function

This commit is contained in:
Wancat
2022-11-05 00:13:21 +08:00
parent 4ae49b5db6
commit ae86204c84
7 changed files with 56 additions and 32 deletions

View File

@@ -1,7 +1,7 @@
package main
var SCRIPTS = map[string][]string{
"balance assets": {"b", "assets", "-X", "$"},
"register": {"r", "--tail", "10"},
"balance this month": {"b", "-b", "this month"},
var SCRIPTS = map[string]string{
"balance assets": "b assets -X $",
"register": "r --tail 10",
"balance this month": "b -b \"this month\"",
}