commands

package
v0.14.13 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2026 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Create added in v0.9.0

func Create(
	homeDir func() (string, error),
	getWd func() (string, error),
	readDefinition func(string, ...ingitdb.ReadOption) (*ingitdb.Definition, error),
	newDB func(string, *ingitdb.Definition) (dal.DB, error),
	logf func(...any),
) *cli.Command

Create returns the create command group.

func Delete

func Delete(
	homeDir func() (string, error),
	getWd func() (string, error),
	readDefinition func(string, ...ingitdb.ReadOption) (*ingitdb.Definition, error),
	newDB func(string, *ingitdb.Definition) (dal.DB, error),
	logf func(...any),
) *cli.Command

Delete returns the delete command group.

func Find

func Find() *cli.Command

Find returns the find command.

func List

func List(
	homeDir func() (string, error),
	getWd func() (string, error),
	readDefinition func(string, ...ingitdb.ReadOption) (*ingitdb.Definition, error),
) *cli.Command

List returns the list command.

func Materialize

func Materialize(
	homeDir func() (string, error),
	getWd func() (string, error),
	readDefinition func(string, ...ingitdb.ReadOption) (*ingitdb.Definition, error),
	viewBuilder materializer.ViewBuilder,
	logf func(...any),
) *cli.Command

Materialize returns the materialize command.

func Migrate

func Migrate() *cli.Command

Migrate returns the migrate command.

func Pull

func Pull() *cli.Command

Pull returns the pull command.

func Query

func Query() *cli.Command

Query returns the query command.

func Read added in v0.9.2

func Read(
	homeDir func() (string, error),
	getWd func() (string, error),
	readDefinition func(string, ...ingitdb.ReadOption) (*ingitdb.Definition, error),
	newDB func(string, *ingitdb.Definition) (dal.DB, error),
	logf func(...any),
) *cli.Command

Read returns the read command group.

func Resolve

func Resolve() *cli.Command

Resolve returns the resolve command.

func Serve

func Serve(
	homeDir func() (string, error),
	getWd func() (string, error),
	readDefinition func(string, ...ingitdb.ReadOption) (*ingitdb.Definition, error),
	newDB func(string, *ingitdb.Definition) (dal.DB, error),
	logf func(...any),
) *cli.Command

Serve returns the serve command.

func Setup

func Setup() *cli.Command

Setup returns the setup command.

func Truncate

func Truncate() *cli.Command

Truncate returns the truncate command.

func Update added in v0.9.0

func Update(
	homeDir func() (string, error),
	getWd func() (string, error),
	readDefinition func(string, ...ingitdb.ReadOption) (*ingitdb.Definition, error),
	newDB func(string, *ingitdb.Definition) (dal.DB, error),
	logf func(...any),
) *cli.Command

Update returns the update command group.

func Validate

func Validate(
	homeDir func() (string, error),
	getWd func() (string, error),
	readDefinition func(string, ...ingitdb.ReadOption) (*ingitdb.Definition, error),
	dataVal datavalidator.DataValidator,
	incVal datavalidator.IncrementalValidator,
	logf func(...any),
) *cli.Command

Validate returns the validate command.

func Version

func Version(ver, commit, date string) *cli.Command

Version returns the version command.

func Watch

func Watch() *cli.Command

Watch returns the watch command.

Types

type GitHubDBFactory added in v0.14.0

type GitHubDBFactory interface {
	NewGitHubDBWithDef(cfg dalgo2ghingitdb.Config, def *ingitdb.Definition) (dal.DB, error)
}

GitHubDBFactory creates a GitHub-backed DAL database.

type GitHubFileReaderFactory added in v0.14.0

type GitHubFileReaderFactory interface {
	NewGitHubFileReader(cfg dalgo2ghingitdb.Config) (dalgo2ghingitdb.FileReader, error)
}

GitHubFileReaderFactory creates a GitHub file reader.

type ViewBuilderFactory added in v0.14.0

type ViewBuilderFactory interface {
	ViewBuilderForCollection(colDef *ingitdb.CollectionDef) (materializer.ViewBuilder, error)
}

ViewBuilderFactory creates a view builder for a collection.

Jump to

Keyboard shortcuts

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