all repos

clerk @ 0b03250

missing tooling for ledger/hledger
11 files changed, 18 insertions(+), 18 deletions(-)
rename to clerk
Author: Oleksandr Smirnov olexsmir@gmail.com
Committed at: 2026-05-23 17:52:23 +0300
Authored at: 2026-05-14 18:36:36 +0300
Change ID: tqwnxlxvtsuqxtqryoqrnmwklktmyrql
Parent: e586ae2
M go.mod
···
        1
        
        -module github.com/olexsmir/ledger-tools

      
        
        1
        +module olexsmir.xyz/clerk

      
        2
        2
         

      
        3
        3
         go 1.26.2

      
        4
        4
         

      
M journal/ast/ast.go
···
        1
        1
         package ast

      
        2
        2
         

      
        3
        
        -import "github.com/olexsmir/ledger-tools/journal/token"

      
        
        3
        +import "olexsmir.xyz/clerk/journal/token"

      
        4
        4
         

      
        5
        5
         type Journal struct {

      
        6
        6
         	Entries []Entry

      
M journal/ast/directives.go
···
        1
        1
         package ast

      
        2
        2
         

      
        3
        
        -import "github.com/olexsmir/ledger-tools/journal/token"

      
        
        3
        +import "olexsmir.xyz/clerk/journal/token"

      
        4
        4
         

      
        5
        5
         type AccountDirective struct {

      
        6
        6
         	Account Account

      
M journal/ast/entries.go
···
        1
        1
         package ast

      
        2
        2
         

      
        3
        3
         import (

      
        4
        
        -	"github.com/olexsmir/ledger-tools/journal/token"

      
        
        4
        +	"olexsmir.xyz/clerk/journal/token"

      
        5
        5
         	"github.com/shopspring/decimal"

      
        6
        6
         )

      
        7
        7
         

      
M journal/lexer/dump.go
···
        4
        4
         	"fmt"

      
        5
        5
         	"strings"

      
        6
        6
         

      
        7
        
        -	"github.com/olexsmir/ledger-tools/journal/token"

      
        
        7
        +	"olexsmir.xyz/clerk/journal/token"

      
        8
        8
         )

      
        9
        9
         

      
        10
        10
         func (l *Lexer) Dump() string {

      
M journal/lexer/lexer.go
···
        5
        5
         	"unicode"

      
        6
        6
         	"unicode/utf8"

      
        7
        7
         

      
        8
        
        -	"github.com/olexsmir/ledger-tools/journal/token"

      
        
        8
        +	"olexsmir.xyz/clerk/journal/token"

      
        9
        9
         )

      
        10
        10
         

      
        11
        11
         type Mode uint

      
M journal/lexer/lexer_test.go
···
        3
        3
         import (

      
        4
        4
         	"testing"

      
        5
        5
         

      
        6
        
        -	"github.com/olexsmir/ledger-tools/internal/testutil/golden"

      
        7
        
        -	"github.com/olexsmir/ledger-tools/journal/token"

      
        
        6
        +	"olexsmir.xyz/clerk/internal/testutil/golden"

      
        
        7
        +	"olexsmir.xyz/clerk/journal/token"

      
        8
        8
         )

      
        9
        9
         

      
        10
        10
         func TestLexer(t *testing.T) {

      
M journal/loader.go
···
        7
        7
         	"slices"

      
        8
        8
         	"strings"

      
        9
        9
         

      
        10
        
        -	"github.com/olexsmir/ledger-tools/journal/ast"

      
        11
        
        -	"github.com/olexsmir/ledger-tools/journal/lexer"

      
        12
        
        -	"github.com/olexsmir/ledger-tools/journal/parser"

      
        
        10
        +	"olexsmir.xyz/clerk/journal/ast"

      
        
        11
        +	"olexsmir.xyz/clerk/journal/lexer"

      
        
        12
        +	"olexsmir.xyz/clerk/journal/parser"

      
        13
        13
         )

      
        14
        14
         

      
        15
        15
         type ParsedFile struct {

      
M journal/parser/parser.go
···
        5
        5
         	"strconv"

      
        6
        6
         	"strings"

      
        7
        7
         

      
        8
        
        -	"github.com/olexsmir/ledger-tools/journal/ast"

      
        9
        
        -	"github.com/olexsmir/ledger-tools/journal/lexer"

      
        10
        
        -	"github.com/olexsmir/ledger-tools/journal/token"

      
        
        8
        +	"olexsmir.xyz/clerk/journal/ast"

      
        
        9
        +	"olexsmir.xyz/clerk/journal/lexer"

      
        
        10
        +	"olexsmir.xyz/clerk/journal/token"

      
        11
        11
         	"github.com/shopspring/decimal"

      
        12
        12
         )

      
        13
        13
         

      
M journal/parser/parser_test.go
···
        3
        3
         import (

      
        4
        4
         	"testing"

      
        5
        5
         

      
        6
        
        -	"github.com/olexsmir/ledger-tools/internal/testutil/golden"

      
        7
        
        -	"github.com/olexsmir/ledger-tools/journal/ast"

      
        8
        
        -	"github.com/olexsmir/ledger-tools/journal/lexer"

      
        
        6
        +	"olexsmir.xyz/clerk/internal/testutil/golden"

      
        
        7
        +	"olexsmir.xyz/clerk/journal/ast"

      
        
        8
        +	"olexsmir.xyz/clerk/journal/lexer"

      
        9
        9
         )

      
        10
        10
         

      
        11
        11
         func TestParser_ParseFile(t *testing.T) {

      
M tests/test.go
···
        5
        5
         	"os"

      
        6
        6
         	"path/filepath"

      
        7
        7
         

      
        8
        
        -	"github.com/olexsmir/ledger-tools/journal"

      
        
        8
        +	"olexsmir.xyz/clerk/journal"

      
        9
        9
         )

      
        10
        10
         

      
        11
        11
         type test struct {