scaffold

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Create

func Create(moduleName, targetDir string) error

Create scaffolds a new Pickle project in targetDir with the given module name.

func MakeAction

func MakeAction(name, projectDir string) (string, error)

MakeAction scaffolds a new action + gate file. The name format is "model/action", e.g. "Post/publish".

func MakeController

func MakeController(name, projectDir, moduleName string) (string, error)

MakeController scaffolds a new controller file.

func MakeGraphQLPolicy

func MakeGraphQLPolicy(name, projectDir string) (string, error)

MakeGraphQLPolicy scaffolds a new GraphQL policy file in database/policies/graphql/.

func MakeJob

func MakeJob(name, projectDir, moduleName string) (string, error)

MakeJob scaffolds a new job file.

func MakeMiddleware

func MakeMiddleware(name, projectDir, moduleName string) (string, error)

MakeMiddleware scaffolds a new middleware file.

func MakeMigration

func MakeMigration(name, projectDir string) (string, error)

MakeMigration scaffolds a new migration file.

func MakePolicy

func MakePolicy(name, projectDir string) (string, error)

MakePolicy scaffolds a new policy file in database/policies/.

func MakeRequest

func MakeRequest(name, projectDir, moduleName string) (string, error)

MakeRequest scaffolds a new request file.

func MakeScope

func MakeScope(name, projectDir string) (string, error)

MakeScope scaffolds a new scope file. The name format is "model/scope", e.g. "Post/published".

Types

This section is empty.

Jump to

Keyboard shortcuts

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