template flag for export master #22

Closed
opened 2022-06-16 13:11:35 +00:00 by banillie · 5 comments
banillie commented 2022-06-16 13:11:35 +00:00 (Migrated from github.com)

@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 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 2022-06-16 13:24:13 +00:00 (Migrated from github.com)

Sure, I'll look into it.

Sure, I'll look into it.
yulqen commented 2022-06-21 22:11:26 +00:00 (Migrated from github.com)

@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 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 2022-06-22 10:42:38 +00:00 (Migrated from github.com)

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

@yulqen tested and working like a charm. That will be really useful addition. Thank you.
yulqen commented 2022-06-22 10:53:35 +00:00 (Migrated from github.com)

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

Great - will release the update in the next day or so and let you know. Thanks for testing.
yulqen commented 2022-06-22 18:27:21 +00:00 (Migrated from github.com)

v1.1.8 released.

v1.1.8 released.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
yulqen/datamaps#22
No description provided.