Code Monkey home page Code Monkey logo

Comments (5)

lestephane avatar lestephane commented on June 12, 2024 1

The preprocess script could be a simple shell script that just runs the one you maintain elsewhere

Sure, that works too

from hledger-flow.

apauley avatar apauley commented on June 12, 2024

Interesting use case, I'll have to think about it some more.

Very nice idea though to have a place where people can share scripts and rules files!
Similar to the example rules files in hledger, but also supporting scripts.
https://github.com/simonmichael/hledger/tree/master/examples/csv

I'm using symlinks to point some of my preprocess and construct scripts to scripts maintained elsewhere. Haven't considered environments that doesn't have symlinks.

A very hacky workaround for now could be to make your preprocess a simple script wrapper that copies the rules file, and then runs the real preprocess in the external repo.

from hledger-flow.

apauley avatar apauley commented on June 12, 2024

Another option, instead copying the rules file with a script, could be to have an include line in a rules file used by hledger-flow which just points to the path of the external rules file.

https://hledger.org/manual.html#csv-format

from hledger-flow.

lestephane avatar lestephane commented on June 12, 2024

I prefer sticking to the hledger feature set rather than complicate your codebase.
include (in the sense of what is described at https://hledger.org/manual.html#include) would work, what about preprocess scripts though?

(mind you, I only have one preprocess script so far, and I could probably get rid of it)

from hledger-flow.

apauley avatar apauley commented on June 12, 2024

I prefer sticking to the hledger feature set rather than complicate your codebase.
include (in the sense of what is described at https://hledger.org/manual.html#include) would work, what about preprocess scripts though?

(mind you, I only have one preprocess script so far, and I could probably get rid of it)

The preprocess script could be a simple shell script that just runs the one you maintain elsewhere

from hledger-flow.

Related Issues (20)

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.