diff --git a/.vscode/launch.json b/.vscode/launch.json index 9e3da2c..66c9e27 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -1,48 +1,48 @@ { - // Use IntelliSense to learn about possible attributes. - // Hover to view descriptions of existing attributes. - // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 - "version": "0.2.0", - "inputs": [ - { "id": "filename", "type": "promptString", "description": "Filename" }, - { "id": "coin_cmd", "type": "promptString", "description": "Coin command" }, - ], - "configurations": [ - { - "name": "Debug coin", - "type": "go", - "request": "launch", - "mode": "debug", - "program": "${workspaceFolder}/cmd/coin", - "args": ["${input:coin_cmd}"], - }, - { - "name": "Debug ofx2coin", - "type": "go", - "request": "launch", - "mode": "debug", - "program": "${workspaceFolder}/cmd/ofx2coin", - "args": ["-bmo", "${env:COINDB}/qfx/${input:filename}.qfx"], - }, - { - "name": "Debug csv2coin", - "type": "go", - "request": "launch", - "mode": "debug", - "program": "${workspaceFolder}/cmd/csv2coin", - "args": ["-source=pwl", "${env:COINDB}/csv/test.csv"], - }, - { - "name": "Debug coin test", - "type": "go", - "request": "launch", - "mode": "debug", - "env": { - "COIN_TESTS": "${workspaceFolder}/tests" - }, - "cwd": "${workspaceFolder}", - "program": "${workspaceFolder}/cmd/coin", - "args": ["test", "-v", "${file}"], - } - ] -} \ No newline at end of file + // Use IntelliSense to learn about possible attributes. + // Hover to view descriptions of existing attributes. + // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 + "version": "0.2.0", + "inputs": [ + { "id": "filename", "type": "promptString", "description": "Filename" }, + { "id": "coin_cmd", "type": "promptString", "description": "Coin command" } + ], + "configurations": [ + { + "name": "Debug coin", + "type": "go", + "request": "launch", + "mode": "debug", + "program": "${workspaceFolder}/cmd/coin", + "args": ["${input:coin_cmd}"] + }, + { + "name": "Debug ofx2coin", + "type": "go", + "request": "launch", + "mode": "debug", + "program": "${workspaceFolder}/cmd/ofx2coin", + "args": ["-bmo", "${env:COINDB}/qfx/${input:filename}.qfx"] + }, + { + "name": "Debug csv2coin", + "type": "go", + "request": "launch", + "mode": "debug", + "program": "${workspaceFolder}/cmd/csv2coin", + "args": ["-source=pwl", "${env:COINDB}/csv/test.csv"] + }, + { + "name": "Debug coin test", + "type": "go", + "request": "launch", + "mode": "debug", + "env": { + "COIN_TESTS": "${workspaceFolder}/tests" + }, + "cwd": "${workspaceFolder}", + "program": "${workspaceFolder}/cmd/coin", + "args": ["test", "-v", "${file}"] + } + ] +} diff --git a/TODO.md b/TODO.md index 93c6d21..4ee2880 100644 --- a/TODO.md +++ b/TODO.md @@ -24,6 +24,7 @@ ### coin2html +- chart doesn't respect SelectedAccount - replace dateToString with d3.format - thousands separator - tooltips for columns, inputs and wherever useful diff --git a/check/check.go b/check/check.go index 23af234..ef23c99 100644 --- a/check/check.go +++ b/check/check.go @@ -9,7 +9,7 @@ func If(holds bool, format string, args ...interface{}) { if holds { return } - fmt.Fprintf(os.Stderr, format, args...) + fmt.Fprintf(os.Stderr, format+"\n", args...) os.Exit(1) }