scaffold

package
v0.2.8 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Command

func Command(dir, name string, args ...string) *exec.Cmd

Command creates a runnable command with common defaults.

func Move

func Move(fromDir, toDir string) error

Move a `from` directory to a `to` directory.

func OSFS

func OSFS(dir string) virtual.FS

func Scaffold

func Scaffold(fsys virtual.FS, scaffoldings ...Scaffolding) error

func Write

func Write(fsys fs.FS, to string) error

Types

type MapFS

type MapFS = virtual.Tree

type Scaffolding

type Scaffolding interface {
	Scaffold(fsys virtual.FS) error
}

func File added in v0.2.6

func File(path string, data []byte) Scaffolding

func JSON

func JSON(path string, state interface{}) Scaffolding

func Template

func Template(path, template string, state interface{}) Scaffolding

Jump to

Keyboard shortcuts

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