cli

package
Version: v0.0.0-...-8433dcb Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2020 License: BSD-3-Clause Imports: 16 Imported by: 2

Documentation

Overview

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

Index

Constants

This section is empty.

Variables

View Source
var Usage string

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

Functions

func Run

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.

Types

type CLIFlags

type CLIFlags struct {
	*flag.FlagSet
	// contains filtered or unexported fields
}

func Flags

func Flags() *CLIFlags

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

Source Files

Jump to

Keyboard shortcuts

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