servicekit

command
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Command servicekit scaffolds and manages servicekit-based services.

It is a CLI built on github.com/jessevdk/go-flags with two subcommands: new (scaffold a service) and version (print the CLI version, overridable at build time with -ldflags "-X main.version=...").

servicekit new

Creates a new service module. Without --template it renders an embedded minimal starter; with --template it delegates to the gonew tool (an installed gonew binary, or `go run golang.org/x/tools/cmd/gonew@latest` as a fallback). The target directory must not already exist with content, so an existing project is never overwritten. Per-model CRUD generators (`add`) land in a later release.

Usage:

servicekit new <module-path> [flags]

The positional module-path is required (e.g. github.com/you/svc). Flags:

--dir          target directory (default: last element of the module path)
--template     gonew template module; delegates to gonew when set
--sdk-version  servicekit version for go.mod (default "latest"; "latest"
               omits the require — run go mod tidy)

Examples

servicekit new github.com/you/svc                      # embedded starter
servicekit new github.com/you/svc --dir ./svc
servicekit new github.com/you/svc --template github.com/some/template
servicekit version

Jump to

Keyboard shortcuts

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