cmd

package
v0.33.28 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2026 License: Apache-2.0 Imports: 14 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CLI

type CLI struct {
	Init InitCmd `cmd:"" help:"create new database file"`
	Set  SetCmd  `cmd:"" help:"set manifest"`
	Load LoadCmd `cmd:"" help:"load data"`
	Sync SyncCmd `cmd:"" help:"sync data"`
}

type InitCmd

type InitCmd struct {
	DBFile string `arg:"" help:"db file name"`
}

func (*InitCmd) Run

func (cmd *InitCmd) Run(ctx context.Context) error

type LoadCmd

type LoadCmd struct {
	DBFile  string `arg:"" help:"db file name" type:"existingfile"`
	DataDir string `arg:"" help:"data file directory" type:"existingdir"`
}

func (*LoadCmd) Run

func (cmd *LoadCmd) Run(ctx context.Context) error

type SetCmd

type SetCmd struct {
	DBFile   string `arg:"" help:"db file name" type:"existingfile"`
	Manifest string `arg:"" help:"manifest file path" type:"existingfile"`
}

func (*SetCmd) Run

func (cmd *SetCmd) Run(ctx context.Context) error

type SyncCmd

type SyncCmd struct {
	dsc.Config

	DBFile string   `arg:"" help:"db file name" type:"existingfile"`
	Mode   []string `flag:"" short:"m" enum:"manifest,full,diff,watermark" required:"" help:"sync mode"`
}

func (*SyncCmd) Run

func (cmd *SyncCmd) Run(ctx context.Context) error

Jump to

Keyboard shortcuts

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