app

package
v0.0.0-...-3a06bfb Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const CONFIG_FILENAME = "imbed.toml"
View Source
const DB_DIR = ".imbed"
View Source
const FILES_DIR = "files"
View Source
const LOCK_FILENAME = "lock"
View Source
const TMP_DIR = "tmp"

Variables

View Source
var (
	Stdout io.Writer = os.Stdout
	Stderr io.Writer = os.Stderr
)

Functions

func ParseAndRun

func ParseAndRun(cmdArgs []string, specs Commands, registry *transform.Registry) error

Types

type App

type App struct {
	// contains filtered or unexported fields
}

func (*App) BuildMode

func (s *App) BuildMode() core.BuildMode

func (*App) Close

func (s *App) Close() error

func (*App) ConfigFilePath

func (s *App) ConfigFilePath() string

func (*App) DB

func (s *App) DB() *db.Service

func (*App) DBDir

func (s *App) DBDir() string

func (*App) FilePath

func (s *App) FilePath(objectName string) string

func (*App) Mode

func (s *App) Mode() core.Mode

func (*App) ProxyFunc

func (s *App) ProxyFunc() func(reqURL *url.URL) (*url.URL, error)

func (*App) Registry

func (s *App) Registry() *transform.Registry

func (*App) Stderr

func (s *App) Stderr() io.Writer

func (*App) Stdout

func (s *App) Stdout() io.Writer

func (*App) TmpDir

func (s *App) TmpDir() string

func (*App) WorkDir

func (s *App) WorkDir() string

func (*App) WorkspaceConfigScanner

func (s *App) WorkspaceConfigScanner(key string) (schema.Scanner, error)

type CommandRunner

type CommandRunner func(app *App, command CommandSpec) error

type CommandSpec

type CommandSpec struct {
	Name string
	*pflag.FlagSet
	core.Mode
	Runner CommandRunner
}

type Commands

type Commands struct {
	// contains filtered or unexported fields
}

func (Commands) Register

func (cs Commands) Register(spec CommandSpec) Commands

Jump to

Keyboard shortcuts

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