code

package
v0.0.0-...-5ef30d1 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AppName

func AppName(dir, space string) string

Types

type CmdResult

type CmdResult struct {
	Err string
	Out string
}

type Config

type Config struct {
	CmdOutput func(string, ...string) (string, error)
	Getenv    func(string) string
	Getwd     func() (string, error)
}

func SystemConfig

func SystemConfig() Config

func TestConfig

func TestConfig(cmds map[string]CmdResult, dir string, env []string) Config

type Out

type Out struct {
	Dir  string
	Name string
}

func Code

func Code(cfg Config) (Out, error)

func System

func System() (Out, error)

Jump to

Keyboard shortcuts

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