3 Commits
Author SHA1 Message Date
Roy Xu 07965a4a02 add test for connect 2020-02-28 16:02:40 -05:00
Roy XuandGitHub f81df5c5a3 print input format guessed by certigo (#210) 2020-02-25 11:17:01 -08:00
Matthew McPherrin 26cd65d9bd refactor certigo package main
This splits the logic into a cli, which handles parsing command line args and
reading files, and a terminal abstraction for handling user input and ouput.

All uses of os.Exit are removed in favor of returning errors.

Overall this enables better testing and reuse of code.  Previously we had to
rely on external unit testing for CLI tests, which are harder to write tests.
2020-01-13 15:58:53 -08:00