scaffold

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2022 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) vfs.ReadWritable

func Scaffold

func Scaffold(fsys vfs.ReadWritable, scaffoldings ...Scaffolding) error

func Write

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

Types

type MapFS

type MapFS = vfs.Memory

type Scaffolding

type Scaffolding interface {
	Scaffold(fsys vfs.ReadWritable) error
}

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