execenv

package
v0.0.0-...-1d19ee6 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package execenv provides the environment for executing commands.

Index

Constants

View Source
const RootCommandName = "kalki"

RootCommandName is the name of the root command.

Variables

This section is empty.

Functions

This section is empty.

Types

type Env

type Env struct {
	Logger *zap.Logger
	Out    Out
	Err    Out
}

Env is the environment of a command.

func NewEnv

func NewEnv() *Env

NewEnv creates a new environment.

type Out

type Out interface {
	io.Writer
	Printf(format string, a ...interface{})
	Print(a ...interface{})
	Println(a ...interface{})
}

Out is the output interface.

Jump to

Keyboard shortcuts

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