cli

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2026 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute()

Types

type AssetsCmd

type AssetsCmd struct {
	Build BuildCmd `cmd:"" help:"Run configured build scripts"`
}

type BuildCmd

type BuildCmd struct {
	Source  string   `help:"Directory the bundler writes output to." default:"app/frontend/builds"`
	Output  string   `help:"Digested asset output directory." default:"public/assets"`
	Prefix  string   `help:"URL prefix used when rewriting asset references." default:"/assets"`
	Dir     string   `help:"Working directory containing package.json." default:"."`
	Scripts []string `help:"package.json scripts to run before fingerprinting." default:"build"`
}

func (*BuildCmd) Run

func (b *BuildCmd) Run() error

type CLI

type CLI struct {
	Migrate MigrateCmd `cmd:"" help:"Manage DB migrations."`
}

type CreateCmd

type CreateCmd struct {
	Name string `arg:"" help:"Name of the new migration, e.g. create_widgets"`
}

func (*CreateCmd) Run

func (c *CreateCmd) Run() error

type DownCmd

type DownCmd struct{}

func (*DownCmd) Run

func (d *DownCmd) Run() error

type ImportmapCmd

type ImportmapCmd struct {
	Pin   PinCmd   `cmd:"" help:"Pin a package (and its dependencies) from jspm.org into the importmap."`
	Unpin UnpinCmd `cmd:"" help:"Remove a pin from the importmap."`
	Json  JsonCmd  `cmd:"" help:"Print the resolved importmap as JSON."`
}

type JsonCmd

type JsonCmd struct{}

func (*JsonCmd) Run

func (c *JsonCmd) Run() error

type MigrateCmd

type MigrateCmd struct {
	Create CreateCmd `cmd:"" help:"Generate a new migration."`
	Up     UpCmd     `cmd:"" help:"Run all pending migrations."`
	Down   DownCmd   `cmd:"" help:"Roll back the most recently applied migration."`
}

type PinCmd

type PinCmd struct {
	Name    string `arg:"" help:"Package to pin, e.g. lodash-es or lodash-es@4.17.21"`
	Preload bool   `help:"Preload this pin's dependency graph." default:"true"`
	Vendor  bool   `` /* 138-byte string literal not displayed */
}

func (*PinCmd) Run

func (c *PinCmd) Run() error

type UnpinCmd

type UnpinCmd struct {
	Name string `arg:"" help:"Name of the pin to remove"`
}

func (*UnpinCmd) Run

func (c *UnpinCmd) Run() error

type UpCmd

type UpCmd struct{}

func (*UpCmd) Run

func (u *UpCmd) Run() error

Jump to

Keyboard shortcuts

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