Command line mode

Opening new PR to replace #71
@davidfowl @abnanda1 
nit - I would create a separate method for actions taken for each `case` branch.