[ogg-dev] oggz commandline completion

Conrad Parker
Sun, 03 Aug 2008 07:47:48 -0000

Hi,

I just added a bash completion script to the oggz repo, please test it out:

 http://svn.annodex.net/liboggz/trunk/bash-completion/oggz

Source it from your .profile, or add it to /etc/bash_completion.d to
enable it system-wide.
If you are packaging oggz-tools, please consider installing this :-)

It will complete commandline options, codec names and Ogg filenames as
appropriate:

conrad at growl:~/share$ oggz [TAB]
chop          dump          known-codecs  scan
comment       help          merge         sort
diff          info          rip           validate
conrad at growl:~/share$ oggz dump --[TAB]
--binary           --hide-granulepos  --new              --version
--content-type     --hide-offset      --output
--help             --hide-packetno    --revert
--hexadecimal      --hide-serialno    --serialno
conrad at growl:~/share$ oggz dump --co[TAB]
conrad at growl:~/share$ oggz dump --content-type th[TAB]
conrad at growl:~/share$ oggz dump --content-type theora bee[TAB]
beer/     bees.ogg
conrad at growl:~/share$ oggz dump --content-type theora bees[TAB]
conrad at growl:~/share$ oggz dump --content-type theora bees.ogg

You will need to be running the current svn versions of the tools, as
they now all have a "-?" option which lists out all valid options.
Also the recently added oggz-known-codecs tool is used for completion
of codec names.

cheers,

Conrad.