updated readme and fixed bad conflict resolution
Generate check / check-changes (pull_request) Successful in 2s
Generate check / verify-generate (pull_request) Skipped
Quality / check-changes (pull_request) Successful in 3s
Quality / static-checks (pull_request) Successful in 55s
Quality / run-tests (pull_request) Successful in 55s

This commit is contained in:
natercio committed 2026-10-05 15:15:05 +01:00
1 parent 5c146ad60f
commit 4384f28df9
4 files changed
+8 -22

No files matched your search

+8 -2
View File
@@ -20,10 +20,16 @@ go install github.com/nmoniz/any2anexoj/cmd/any2anexoj-cli@latest
## Usage ## Usage
```bash ```bash
cat statement.csv | any2anexoj-cli --platform=tranding212 cat statement.csv | any2anexoj-cli --platform=trading212
``` ```
Pass `--format html` to emit a complete, standalone Bootstrap-styled HTML report (a `<!DOCTYPE html>` document with the Anexo J table embedded and Bootstrap loaded via CDN); the default `--format table` prints the pretty terminal table and `--format csv` writes the Anexo J CSV schema. `trading212` is currently the only supported platform. The output format is selected with `-f`/`--format`:
- `table` (default): pretty terminal table
- `csv`: the Anexo J CSV schema
- `html`: a complete, standalone Bootstrap-styled HTML report — a `<!DOCTYPE html>` document with the Anexo J table embedded and Bootstrap loaded via CDN
The `table` and `html` formats are translated according to `--language`/`-l` (`pt` by default, `en` available). Other flags: `--selectors` filters which entries are processed (`code`, `assetCountry`), `--open-figi-api-key` raises OpenFIGI rate limits for faster report generation, and `--debug` enables debug logging.
### Incremental Reports ### Incremental Reports
-4
View File
@@ -1,8 +1,4 @@
<<<<<<<< HEAD:cmd/any2anexoj-cli/localizer.go
package main
========
package writing package writing
>>>>>>>> 6ba3d78 (writers in writing package):internal/writing/localizer.go
import ( import (
"embed" "embed"
-10
View File
@@ -1,8 +1,3 @@
<<<<<<<< HEAD:cmd/any2anexoj-cli/localizer_test.go
package main
import "testing"
========
package writing_test package writing_test
import ( import (
@@ -10,7 +5,6 @@ import (
"github.com/nmoniz/any2anexoj/internal/writing" "github.com/nmoniz/any2anexoj/internal/writing"
) )
>>>>>>>> 6ba3d78 (writers in writing package):internal/writing/localizer_test.go
func TestNewLocalizer(t *testing.T) { func TestNewLocalizer(t *testing.T) {
tests := []struct { tests := []struct {
@@ -25,11 +19,7 @@ func TestNewLocalizer(t *testing.T) {
} }
for _, tt := range tests { for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) { t.Run(tt.name, func(t *testing.T) {
<<<<<<<< HEAD:cmd/any2anexoj-cli/localizer_test.go
_, err := NewLocalizer(tt.lang)
========
_, err := writing.NewLocalizer(tt.lang) _, err := writing.NewLocalizer(tt.lang)
>>>>>>>> 6ba3d78 (writers in writing package):internal/writing/localizer_test.go
if err != nil { if err != nil {
t.Fatalf("want success call but failed: %v", err) t.Fatalf("want success call but failed: %v", err)
} }
-6
View File
@@ -6,8 +6,6 @@ import (
"time" "time"
"github.com/nmoniz/any2anexoj/internal" "github.com/nmoniz/any2anexoj/internal"
<<<<<<<< HEAD:cmd/any2anexoj-cli/pretty_printer_test.go
========
"github.com/nmoniz/any2anexoj/internal/writing" "github.com/nmoniz/any2anexoj/internal/writing"
"github.com/nmoniz/any2anexoj/internal/writing/table" "github.com/nmoniz/any2anexoj/internal/writing/table"
"github.com/shopspring/decimal" "github.com/shopspring/decimal"
@@ -52,11 +50,7 @@ func TestPrinter_Render(t *testing.T) {
} }
// Create English localizer // Create English localizer
<<<<<<<< HEAD:cmd/any2anexoj-cli/pretty_printer_test.go
localizer, err := NewLocalizer("en")
========
localizer, err := writing.NewLocalizer("en") localizer, err := writing.NewLocalizer("en")
>>>>>>>> 6ba3d78 (writers in writing package):internal/writing/pretty/printer_test.go
if err != nil { if err != nil {
t.Fatalf("failed to create localizer: %v", err) t.Fatalf("failed to create localizer: %v", err)
} }