Versions in this module Expand all Collapse all v0 v0.6.2 Jun 21, 2025 v0.6.1 Feb 21, 2025 v0.6.0 Feb 21, 2025 v0.5.3 Jan 12, 2025 Changes in this version type Config + func (c *Config) Initialize() error v0.5.2 Jan 11, 2025 v0.5.1 Jan 11, 2025 v0.5.0 Jan 11, 2025 v0.4.0 Jan 10, 2025 Changes in this version + var ErrInvalidTemplate = errors.New("InvalidTemplate") + func MkdirTemp(dir, pattern string) (string, error) + func SetupLogger(debug, quiet bool) + func Stderr(quiet bool) io.Writer + func WithErr(err error) any type Config + DisplayTemplate bool + Import []string + Shell []string + TemplateExec string + TemplateInit string + TemplateMain string + TemplateName string + TemplateScript string + func (c Config) Executor(stdin io.Reader, stdout, stderr io.Writer) (*Executor, error) + func (c Config) Merger() *structconfig.Merger[Config] + func (c Config) SciprtArgs() *ScriptArgs + func (c Config) StructConfig() *structconfig.StructConfig[Config] + type Executor struct + Args *ScriptArgs + DisplayTemplate bool + Dry bool + ExecPWD string + KeepScript bool + Shell []string + Stderr io.Writer + Stdin io.Reader + Stdout io.Writer + Template *Template + WorkDir string + func (e *Executor) Execute(ctx context.Context) error + func (e Executor) Close() error + type ScriptArgs struct + Import []string + Init string + Map string + Reduce string + type Template struct + Alias []string + Exec string + Init string + Main string + Name string + Script string + func (t *Template) Override(script, init, exec, main string) + func (t Template) Execute(w io.Writer, args *ScriptArgs) error + func (t Template) Validate() error v0.3.0 Dec 1, 2024 v0.2.0 Dec 1, 2024 Changes in this version type Config + PWD string v0.1.1 Nov 27, 2024 v0.1.0 Nov 27, 2024 Changes in this version + func NewConfigMerger() *structconfig.Merger[Config] + func NewStructConfig() *structconfig.StructConfig[Config] + type Config struct + Debug bool + Dry bool + ExecCmd []string + Imports []string + Init string + InitCmd [][]string + Keep bool + Lang string + Main string + Map string + PreExecCmd []string + Quiet bool + Reduce string + Template string + WorkDir string + func NewConfig(fs *pflag.FlagSet) (*Config, error) + func (c Config) SetupLogger() + type Runner Config + func (r Runner) Run(ctx context.Context) error