cmd

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2018 License: MIT Imports: 13 Imported by: 0

Documentation

Overview

Package cmd contains the logic to setup Prototool with github.com/spf13/cobra.

The packages internal/cmd/prototool, internal/gen/gen-prototool-bash-completion, internal/gen/gen-prototool-manpages and internal/gen/gen-prototool-zsh-completion are main packages that call into this package, and this package calls into internal/exec to execute the logic.

This package also contains integration testing for Prototool.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Do

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

Do runs the command logic.

func GenBashCompletion

func GenBashCompletion(stdin io.Reader, stdout io.Writer, stderr io.Writer) int

GenBashCompletion generates a bash completion file to the writer.

func GenManpages

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

GenManpages generates the manpages to the given directory.

func GenZshCompletion

func GenZshCompletion(stdin io.Reader, stdout io.Writer, stderr io.Writer) int

GenZshCompletion generates a zsh completion file to the writer.

Types

This section is empty.

Jump to

Keyboard shortcuts

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