Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign uppre and post update hooks #93
Comments
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
jbenet
Apr 28, 2014
Contributor
could use transformer for this. I'll play around with it and report back.
|
could use transformer for this. I'll play around with it and report back. |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
maxogden
Apr 28, 2014
Member
was thinking that we could use dat.json (once it gets surfaced to the root of the dat repo and not in the hidden .dat folder) to store the transformations... e.g.
'before': [
'geocode.py',
'format-addresses.rb'
]
|
was thinking that we could use
|
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
maxogden
Jun 17, 2014
Member
@mafintosh another idea, what about a one-time transformation specified during dat import ? e.g. --transform "awk '{print toupper($0)}'". would also be cool to be able to do them on dat cat on the way out
|
@mafintosh another idea, what about a one-time transformation specified during |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
maxogden
Jun 17, 2014
Member
Oh yea we should also add a --dry-run option to all cli operations with side effects
|
Oh yea we should also add a --dry-run option to all cli operations with side effects |
maxogden
closed this
Jun 17, 2014
maxogden
reopened this
Jun 17, 2014
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
|
@maxogden that's pretty trivial to add (i think). will look into it |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
mafintosh
Jun 23, 2014
Member
@maxogden dat import --transform cmd and dat cat --transform cmd works in master now. you can even specify multiple transforms dat cat --transform cmd1 --transform cmd2
|
@maxogden |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
|
ok i'm declaring this done! |
maxogden commentedApr 28, 2014
we need to define an API for running transformations/generic functions automatically. they should be able to be run either before insert of after insert.
check out couchdb validation functions for potential inspiration http://docs.couchdb.org/en/latest/couchapp/ddocs.html#vdufun (though they arent exactly what this issue is talking about)
via @jbenet: