yulqen / datamaps

MOVED: Command line interface to yulqen/bcompiler-engine. Used by DfT to collect and clean data using Excel spreadsheets.
https://git.sr.ht/~yulqen/datamaps
MIT License
2 stars 2 forks source link

template flag for export master #22

Closed banillie closed 2 years ago

banillie commented 2 years ago

@yulqen sorry to raise two issues in two days.

Is it possible to have a --template or -t flag to point to a filepath for a template when doing the datamaps export master command. This would be useful is it will save the user having to keep placing a new blank_template into the input folder every time it changes. No deadline for this.

Cheers.

yulqen commented 2 years ago

Sure, I'll look into it.

yulqen commented 2 years ago

@banillie

Can you please test version 1.1.8 which implements the --template/-t flag on the export command. Also fixed the use of relative or absolute paths when using -d on the export command - this didn't reflect how it worked for import.

  1. Create a scratch virtualenv somewhere: cd /tmp && python3 -m venv venv && source venv/bin/activate
  2. pip install git+https://github.com/yulqen/datamaps.git@master
  3. Try it - datamaps export master -t PATH_TO_TEMPLATE -d PATH_TO_DATAMAP PATH_TO_MASTER

Report problems here! There are bound to be - I'm rusty on this project.

banillie commented 2 years ago

@yulqen tested and working like a charm. That will be really useful addition. Thank you.

yulqen commented 2 years ago

Great - will release the update in the next day or so and let you know. Thanks for testing.

yulqen commented 2 years ago

v1.1.8 released.