bucket

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Overview

© Ben Garrett https://github.com/bengarrett/dupers

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrDatabaseName = errors.New("database has no bucket with this name")
	ErrImport       = errors.New("import filepath is missing")
	ErrNewName      = errors.New("a new directory is required")
	ErrBucketNil    = errors.New("bucket cannot be empty")
	ErrBucketEmpty  = errors.New("bucket contains no files")
)

Functions

func Check

func Check(term, cmd, name string) int

Check prints the missing bucket name error. If an error exists an exit code will be returned.

func Export

func Export(db *bolt.DB, quiet bool, args [2]string) error

Export the bucket as a CSV file.

func Import

func Import(db *bolt.DB, quiet, assumeYes bool, args [2]string) error

Import a CSV file into the database.

func List

func List(db *bolt.DB, quiet bool, args [2]string) error

List the content of a bucket to the stdout.

func Move

func Move(db *bolt.DB, c *dupe.Config, assumeYes bool, src, dest string) error

Move renames a bucket by duplicating it to a new bucket location.

func Remove

func Remove(db *bolt.DB, quiet, assumeYes bool, args [2]string) error

Remove the bucket from the database.

func Rescan

func Rescan(db *bolt.DB, c *dupe.Config, archives bool, args [2]string) error

Rescan the bucket for changes with the file system.

Types

This section is empty.

Jump to

Keyboard shortcuts

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