Skip to content

Commit

Permalink
tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
mkobetic committed Aug 19, 2024
1 parent 8e140fb commit 73af1c1
Show file tree
Hide file tree
Showing 3 changed files with 49 additions and 48 deletions.
94 changes: 47 additions & 47 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -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}"],
}
]
}
// 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}"]
}
]
}
1 change: 1 addition & 0 deletions TODO.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@

### coin2html

- chart doesn't respect SelectedAccount
- replace dateToString with d3.format
- thousands separator
- tooltips for columns, inputs and wherever useful
Expand Down
2 changes: 1 addition & 1 deletion check/check.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

Expand Down

0 comments on commit 73af1c1

Please sign in to comment.