godoctor: github.com/godoctor/godoctor/engine/cli Index | Files

package cli

import "github.com/godoctor/godoctor/engine/cli"

The cli package provides a command-line interface for the Go Doctor.


Package Files



var Usage string

Usage is the text template used to produce the output of "godoctor -help"

func Run Uses

func Run(aboutText string, stdin io.Reader, stdout io.Writer, stderr io.Writer, args []string) int

Run runs the Go Doctor command-line interface. Typical usage is

os.Exit(cli.Run(os.Stdin, os.Stdout, os.Stderr, os.Args))

All arguments must be non-nil, and args[0] is required.

type CLIFlags Uses

type CLIFlags struct {
    // contains filtered or unexported fields

func Flags Uses

func Flags() *CLIFlags

Flags returns the flags supported by the godoctor command line tool.

Package cli imports 16 packages (graph) and is imported by 2 packages. Updated 2018-06-11. Refresh now. Tools for package owners.