cobra

package
v0.3.15 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package cobra provides support for stdio with cobra command.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithStdioProvider

func WithStdioProvider(p StdioProvider) survey.AskOpt

WithStdioProvider configures stdio for prompt.

Types

type StdioProvider

type StdioProvider interface {
	OutOrStdout() io.Writer
	ErrOrStderr() io.Writer
	InOrStdin() io.Reader
}

StdioProvider is a wrapper around *cobra.Command to provide stdin, stdout and stderr to survey.

Jump to

Keyboard shortcuts

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