[WIP] Add AnalyzeCommand

This PR adds the AnalyzeCommand class which implements `--analyze`.