cli

package
v0.1.8 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2025 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ExitCodeOK   = 0
	ExitCodeFail = 1

	DefaultExceedThreshold = 4000
)

Variables

View Source
var (
	Version string
)

Functions

func NewTranslator

func NewTranslator(apiKey string) (*translator, error)

Types

type CLI

type CLI struct {
	// contains filtered or unexported fields
}

func NewCLI

func NewCLI(outStream, errStream io.Writer, inputStream io.Reader, tr Translator, isStdinTerminal bool) *CLI

func (*CLI) Run

func (c *CLI) Run(args []string) int

Run parses the CLI arguments and executes the appropriate functionality based on the provided flags.

func (*CLI) RunDump added in v0.1.7

func (c *CLI) RunDump(repoPath, description string) error

RunDump processes the repository path and writes its contents to standard output.

type Translator

type Translator interface {
	// contains filtered or unexported methods
}

Jump to

Keyboard shortcuts

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