config

package
v0.0.0-...-6d0a47e Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DumpFlags

type DumpFlags struct {
	Path string
}

DumpFlags holds the flags for the dump command.

func (*DumpFlags) Flags

func (d *DumpFlags) Flags(ctx context.Context) []cli.Flag

Flags returns the flags for the dump command.

type GlobalFlags

type GlobalFlags struct {
	APIKey   string
	Endpoint string
	Version  string
}

GlobalFlags holds the configuration for the CLI.

func New

func New(v string) *GlobalFlags

New is a convenience function for creating a new Config.

func (*GlobalFlags) Flags

func (c *GlobalFlags) Flags() []cli.Flag

Flags returns the flags for the CLI.

type SyncFlags

type SyncFlags struct {
	DryRun bool
	Path   string
}

SyncFlags holds the flags for the sync command.

func (*SyncFlags) Flags

func (s *SyncFlags) Flags(ctx context.Context) []cli.Flag

Flags returns the flags for the sync command.

Jump to

Keyboard shortcuts

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