shell

package
v0.0.0-...-57fe098 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package shell provides an abstraction used to execute shell commands within the context of the CLI's parent shell.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Escape

func Escape(s string) string

Escape quotes and escapes a string for use as a shell argument.

Types

type Executor

type Executor func(command string, args ...string) error

Executor is a function used to execute commands within the context of Grit's parent shell.

func NewExecutor

func NewExecutor(w io.Writer) Executor

NewExecutor returns a new executor that writes commands to be executed to w.

Jump to

Keyboard shortcuts

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