doctor

package
v0.12.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 27, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DoctorCmd = &cobra.Command{
	Use:   "doctor",
	Short: "subcommands for webman doctor",
	Long: `

The "doctor" subcommand checks for potential issues. webman can attempt to automatically fix issues using --fix
`,
	RunE: func(cmd *cobra.Command, args []string) error {
		cfg, err := config.Load()
		if err != nil {
			return err
		}

		for _, check := range checks {
			color.HiBlue("== %s", check.Name)
			if err := check.Func(cfg, fix); err != nil {
				return err
			}
		}

		return nil
	},
}

Functions

This section is empty.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL