create

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2022 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Command

type Command struct {
	Log    string
	Dir    string
	Module string
	Dev    bool
	// contains filtered or unexported fields
}

func New added in v0.1.9

func New(bud *bud.Command, in *bud.Input) *Command

func (*Command) Load added in v0.1.9

func (c *Command) Load() (state *State, err error)

func (*Command) Run

func (c *Command) Run(ctx context.Context) (err error)

func (*Command) Scaffold added in v0.1.9

func (c *Command) Scaffold(state *State) error

Scaffold state into the specified directory

type Module added in v0.1.9

type Module struct {
	Name     string
	Requires []*Require
	Replaces []*Replace
}

func (*Module) Version added in v0.1.9

func (m *Module) Version() string

type Package added in v0.1.9

type Package struct {
	Name         string            `json:"name,omitempty"`
	Private      bool              `json:"private,omitempty"`
	Dependencies map[string]string `json:"dependencies,omitempty"`
}

type Replace added in v0.1.9

type Replace struct {
	From string
	To   string
}

type Require added in v0.1.9

type Require struct {
	Import   string
	Version  string
	Indirect bool
}

type State added in v0.1.9

type State struct {
	Module  *Module
	Package *Package
}

Jump to

Keyboard shortcuts

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