Main function improved

- More explicit cli operation
- Using ctx and os.Args injected for eventual later testing
- Returning exit code
- Cli code moved to cli package
This commit is contained in:
Quentin McGaw
2020-06-02 23:03:18 +00:00
parent a7739b6f5d
commit 3ab1298b1f
2 changed files with 28 additions and 11 deletions

View File

@@ -1,4 +1,4 @@
package healthcheck
package cli
import (
"fmt"