cli

package
v0.0.0-...-d364ca2 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2026 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Overview

Package cli implements the Soro command-line interface.

Index

Constants

View Source
const DevelopmentVersion = "0.0.0-dev"

Variables

This section is empty.

Functions

func New

func New(settings Settings) *cobra.Command

Types

type OSRunner

type OSRunner struct{}

func (OSRunner) Run

func (OSRunner) Run(ctx context.Context, directory string, environment []string, stdin io.Reader, stdout, stderr io.Writer, name string, arguments ...string) error

type Runner

type Runner interface {
	Run(context.Context, string, []string, io.Reader, io.Writer, io.Writer, string, ...string) error
}

type Settings

type Settings struct {
	Directory      string
	Stdin          io.Reader
	Stdout         io.Writer
	Stderr         io.Writer
	Runner         Runner
	Version        string
	CreateDatabase func(context.Context, string) error
	DropDatabase   func(context.Context, string) error
}

Jump to

Keyboard shortcuts

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