Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement drush for IMI #98

Open
McFateM opened this issue Dec 19, 2018 · 1 comment
Open

Implement drush for IMI #98

McFateM opened this issue Dec 19, 2018 · 1 comment

Comments

@McFateM
Copy link
Contributor

McFateM commented Dec 19, 2018

Not sure if it's ever been considered, but I would dearly love to have a drush command to launch an IMI import. I know, it takes lots of relatively complex/inter-dependent parameters to drive IMI, but for me, the inputs are very repeatable and consistent, especially during testing. I'm also incorporating IMI into my ISLE-ld workflow in order to populate a feature-rich but light-weight Fedora repository for instant testing and development, and it would be sooooooooo nice to be able to document that with a single drush command rather than pages of screen captures.

So, if I were to spec a proof-of-concept command, maybe like this...

drush -u 1 imi-import  path-to-my.csv  path-to-my-obj.zip  
    --pid-column=pid  
    --cmodel-column=cmodel  
    --parent-column=parent 
    --seq-column=seq 
    --mods=path-to-mods-template_file.twig 
    --dc=path-to-dc-transform_file.xslt 
    --tn=path-to-thumbnail_file.zip 

Could it work? Without a lot of effort? Honestly, I'd take a crack at this myself using a lot of assumed/default selections at first, if I was confident that I've accounted for everything needed, and if I knew which functions to call and in what order.

@DiegoPino
Copy link
Contributor

Can do! Makes sense =) Will add some tags to this, 2019 is fine right? =)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants