cmd

package
v0.32.30 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

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 {
	DBFile string   `arg:"" help:"db file name" type:"existingfile"`
	Mode   []string `flag:"" short:"m" enum:"manifest,full,diff,watermark" required:"" help:"sync mode"`
	dsc.Config
}

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