newStatus prepares a value to perform a diagnostic self-check.
(cli *cli.CLI, cfg config.Config)
| 101 | |
| 102 | // newStatus prepares a value to perform a diagnostic self-check. |
| 103 | func newStatus(cli *cli.CLI, cfg config.Config) Status { |
| 104 | status := Status{ |
| 105 | cfg: cfg, |
| 106 | cli: cli, |
| 107 | } |
| 108 | return status |
| 109 | } |
| 110 | |
| 111 | // check runs the CLI's diagnostic self-check. |
| 112 | func (status *Status) check() (string, error) { |