Skip to content

Commit

Permalink
chore: Don't display skipped checks in doctor command output
Browse files Browse the repository at this point in the history
  • Loading branch information
twpayne committed Oct 19, 2021
1 parent 17a0455 commit ba9f8d3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions internal/cmd/doctorcmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,9 @@ func (c *Config) runDoctorCmd(cmd *cobra.Command, args []string) error {
fmt.Fprint(resultWriter, "RESULT\tCHECK\tMESSAGE\n")
for _, check := range checks {
checkResult, message := check.Run(c.baseSystem)
if checkResult == checkResultSkipped {
continue
}
// Conceal the user's actual home directory in the message as the
// output of chezmoi doctor is often posted publicly and would otherwise
// reveal the user's username.
Expand Down

0 comments on commit ba9f8d3

Please sign in to comment.