cli

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cli

type Cli struct {
	docopt.Opts
}

Cli is a helper type that allows you to instantiate the AsyncAPI Converter and io.Reader of the converted document with arguments passed from the terminal.

func New

func New(opts docopt.Opts) Cli

New returns a new Cli instance.

func (Cli) NewParserAndReader

func (h Cli) NewParserAndReader() (Parser, io.Reader, error)

NewParserAndReader creates both a parser and a reader of the AsyncAPI document.

type Parser

type Parser = func(io.Reader, io.Writer) error

Parser parses an AsyncAPI document.

Jump to

Keyboard shortcuts

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