bbcarchdev / twine

An RDF workflow engine
https://bbcarchdev.github.io/twine/
Apache License 2.0
8 stars 3 forks source link

Add "import from file" option #9

Closed nevali closed 9 years ago

nevali commented 9 years ago

Currently file-imports can be accomplished through the -t TYPE command-line option and piping the file to standard input.

It would be desirable to import from a file if its name is specified following option arguments on the command-line.

If the MIME type could be automatically determined, the need for the -t TYPE argument would be obviated; this would require processors to register file extensions along with the MIME types of messages that they can process.

Currently twine-writerd doesn't accept any non-option arguments, so triggering this behaviour as part of option processing would be trivial.