mcrapet / plowshare

Command-line tool and engine for managing sharing websites
GNU General Public License v3.0
850 stars 88 forks source link

Hook for plowup #23

Closed kidburglar closed 8 years ago

kidburglar commented 9 years ago

Hi, I'm just tried to use --run-before with plowup and I see that

plowup: unknown command-line option --run-before

It is possible to add hooks for plowup ? It can be usefull for example zip files and split or something others.

Cheers.

mcrapet commented 9 years ago

Hi,

For modules supporting cache (see --cache=shared) uploading one file by one file and executing your script will work. However, as the option is existing for plowdown, it could be added to plowup indeed.

kidburglar commented 9 years ago

Ok I taught first to script a while loop with plowup in. But I should wait for hooks (I keep I look at the code and it's a little difficult for me ^^)