Implementing a `groups` CLI command.

This lets us list all groups in a given directory.