utils

package
v0.3.10 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2021 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AggregateConfig

func AggregateConfig(rootDir string) (*conf.Config, error)

func GetWRGLDir

func GetWRGLDir() (string, error)

func MustGetRemote

func MustGetRemote(cmd *cobra.Command, c *conf.Config, name string) *conf.ConfigRemote

func MustWRGLDir

func MustWRGLDir(cmd *cobra.Command) string

func OpenConfig

func OpenConfig(system, global bool, rootDir, file string) (c *conf.Config, err error)

func PagerOrOut

func PagerOrOut(cmd *cobra.Command) (io.Writer, func(), error)

func PrintTable

func PrintTable(w io.Writer, rows [][]string, indent int)

PrintTable prints simple table from rows of text

func SaveConfig

func SaveConfig(c *conf.Config) error

Types

type RepoDir

type RepoDir struct {
	FullPath string
	// contains filtered or unexported fields
}

func NewRepoDir

func NewRepoDir(wrglDir string, badgerLogInfo, badgerLogDebug bool) *RepoDir

func (*RepoDir) Exist

func (d *RepoDir) Exist() bool

func (*RepoDir) FilesPath

func (d *RepoDir) FilesPath() string

func (*RepoDir) Init

func (d *RepoDir) Init() error

func (*RepoDir) KVPath

func (d *RepoDir) KVPath() string

func (*RepoDir) OpenObjectsStore

func (d *RepoDir) OpenObjectsStore() (objects.Store, error)

func (*RepoDir) OpenObjectsTransaction

func (d *RepoDir) OpenObjectsTransaction() (*objbadger.Txn, error)

func (*RepoDir) OpenRefStore

func (d *RepoDir) OpenRefStore() ref.Store

Jump to

Keyboard shortcuts

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