cmd

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Code generated by BuilderGen

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetUsage

func GetUsage(formatPrinter PrinterFn)

GetUsage prints the help message for BuilderGen.

Types

type Config

type Config struct {
	Source      string
	Destination string
	Package     string
	Name        string
}

func NewConfig

func NewConfig(src, dst, pkg, name *string) (*Config, error)

NewConfig creates a new config with the given arguments. It also initializes the default values config arguments.

type ConfigBuilder

type ConfigBuilder struct {
	Source      string
	Destination string
	Package     string
	Name        string
}

func NewConfigBuilder

func NewConfigBuilder(b *Config) *ConfigBuilder

func (*ConfigBuilder) Build

func (b *ConfigBuilder) Build() *Config

func (*ConfigBuilder) WithDestination

func (b *ConfigBuilder) WithDestination(destination string) *ConfigBuilder

func (*ConfigBuilder) WithName

func (b *ConfigBuilder) WithName(name string) *ConfigBuilder

func (*ConfigBuilder) WithPackage

func (b *ConfigBuilder) WithPackage(package_ string) *ConfigBuilder

func (*ConfigBuilder) WithSource

func (b *ConfigBuilder) WithSource(source string) *ConfigBuilder

type PrinterFn added in v0.0.2

type PrinterFn func(string, ...any) (int, error)

Jump to

Keyboard shortcuts

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