Giter Club home page Giter Club logo

ynab-to-ledger's People

Contributors

cincodenada avatar vermiceli avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

ynab-to-ledger's Issues

Running inside a container image (Dockerfile)

Leaving this here for reference in case someone else finds this handy:

Dockerfile:

FROM ubuntu:22.04

RUN mkdir /import && \
    useradd nonroot
WORKDIR /import

RUN apt-get update && \
    apt-get install -y \
        curl \
        dotnet6 \
        unzip && \
    rm -rf /var/lib/apt/lists/*

RUN project_url='https://github.com/vermiceli/ynab-to-ledger' && \
    version='1.0' && \
    checksum='4b196e6cc56e9fadd91ad54d487a827e5c840a740281498ff7373b31f8cbf01a' && \
    curl -sSLo /tmp/linux.zip "$project_url/releases/download/v$version/linux.zip" && \
    echo "$checksum /tmp/linux.zip" | sha256sum -c && \
    unzip /tmp/linux.zip -d /tmp && \
    mv /tmp/linux /usr/local/bin/ynab-to-leger && \
    chmod +x /usr/local/bin/ynab-to-leger/YNABCSVToLedger && \
    ln -s /usr/local/bin/ynab-to-leger/YNABCSVToLedger /usr/local/bin/YNABCSVToLedger && \
    rm /tmp/linux.zip

USER nonroot

To run:

docker build . -t ynab-to-ledger

# Lets say your file is ynab.csv in the current folder
docker run --rm \
    --volume $PWD:/import \
    --interactive --tty ynab-to-ledger

# Once inside the container YNABCSVToLedger is available to run imports

A split transfer is not supported.

Hi
first thank you for bulding this.

I was giving it a try and I ended up with this error

Unhandled Exception: System.Exception: A split transfer is not supported.
at YNABCSVToLedger.Transaction..ctor(IDictionary2 accountTypes, Boolean useClear, CultureInfo culture, IList1 lineItems) in C:\projects\ynab-to-ledger\YNABCSVToLedger\Transaction.cs:line 24
at YNABCSVToLedger.Program.<>c__DisplayClass1_0.b__0() in C:\projects\ynab-to-ledger\YNABCSVToLedger\Program.cs:line 123
at YNABCSVToLedger.Program.GroupLineItems(IEnumerable1 lineItems, IDictionary2 accountTypes, Boolean useClear, CultureInfo culture) in C:\projects\ynab-to-ledger\YNABCSVToLedger\Program.cs:line 162
at YNABCSVToLedger.Program.Main() in C:\projects\ynab-to-ledger\YNABCSVToLedger\Program.cs:line 89

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.