cli

package
v0.16.0 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package cli implements printing functionality for CLI output.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewIn added in v0.0.9

func NewIn(in io.ReadCloser) *launchr.In

NewIn returns a new In object from a io.ReadCloser Deprecated: use launchr.NewIn

func NewOut added in v0.0.9

func NewOut(out io.Writer) *launchr.Out

NewOut returns a new Out object from a io.Writer Deprecated: use launchr.NewOut

func NoopStreams added in v0.2.4

func NoopStreams() launchr.Streams

NoopStreams provides streams like /dev/null. Deprecated: use launchr.NoopStreams

func Print

func Print(format string, a ...any)

Print formats a string. Deprecated: use `launchr.Term().Printf()` or `launchr.Term().Info().Printf()`

func Println

func Println(format string, a ...any)

Println formats a string and adds a new line. Deprecated: use `launchr.Term().Printfln()` or `launchr.Term().Info().Printfln()`

func StandardStreams added in v0.0.9

func StandardStreams() launchr.Streams

StandardStreams sets a cli in, out and err streams with the standard streams. Deprecated: use launchr.StandardStreams

Types

type In added in v0.0.9

type In = launchr.In

In is an input stream used by the DockerCli to read user input Deprecated: use launchr.In

type Out added in v0.0.9

type Out = launchr.Out

Out is an output stream used by the DockerCli to write normal program output. Deprecated: use launchr.Out

type Streams

type Streams = launchr.Streams

Streams is an interface which exposes the standard input and output streams Deprecated: use launchr.Streams

Jump to

Keyboard shortcuts

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