Allow exporting and importing to/from stdin
It would be a good feature if vocabulary could be imported from stdin
as well as exported to stdin
. This would mainly make it easier to use unix pipes with vct. One particular usecase is importing from an online provider. With importing from stdin
you could write a simply pipe vct
to curl
and automatically import the vocabulary. With exporting it would simply allow writing more advanced pipelines or scripts that operate on the export format and perform operations on that.
In general I would implement this by either making the file optional in both commands (if ommited use stdin by default) or if the file is -
read from stdin