commands

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DevServer

func DevServer(projectDir string) error

DevServer runs the project in development mode with continuous file watching and <200ms restart

func InitProject

func InitProject(targetDir string) error

InitProject scaffolds a complete, production-ready CellsWeb RPC Go project

func ScaffoldBatch

func ScaffoldBatch(baseDir string, specs []FunctionSpec) error

ScaffoldBatch processes a JSON array of FunctionSpecs

func ScaffoldBatchFromFile

func ScaffoldBatchFromFile(baseDir, filePath string) error

ScaffoldBatchFromFile reads a JSON spec file and scaffolds functions

func ScaffoldFunction

func ScaffoldFunction(baseDir, namespace, functionName string, isMultipart bool, middlewares []string) error

ScaffoldFunction generates the co-located files for an RPC function

func ScaffoldMiddleware

func ScaffoldMiddleware(baseDir, name, description string) error

ScaffoldMiddleware generates boilerplate for a reusable middleware

Types

type FunctionSpec

type FunctionSpec struct {
	Namespace    string   `json:"namespace"`
	FunctionName string   `json:"functionName"`
	Multipart    bool     `json:"multipart,omitempty"`
	Middlewares  []string `json:"middlewares,omitempty"`
}

FunctionSpec represents a function specification for batch or CLI generation

Jump to

Keyboard shortcuts

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