extract cli from ttt

added a cli interface inside of another namespace
Merge pull request #1 from zachmokahn/extract_cli

extract cli from ttt