cli

package
v0.8.67 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2025 License: MIT Imports: 38 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SyncOptionItems            = "items"
	SyncOptionImages           = "images"
	SyncOptionScreenshots      = "screenshots"
	SyncOptionVideosMetadata   = "videos-metadata"
	SyncOptionDownloadsUpdates = "downloads-updates"
)
View Source
const (
	VetLocalOnlyImages           = "local-only-images"
	VetRecycleBin                = "recycle-bin"
	VetInvalidData               = "invalid-data"
	VetUnresolvedManualUrls      = "unresolved-manual-urls"
	VetInvalidResolvedManualUrls = "invalid-resolved-manual-urls"
	VetMissingChecksums          = "missing-checksums"
	VetStaleDehydrations         = "stale-dehydrations"
	VetOldLogs                   = "old-logs"
)

Variables

View Source
var (
	GitTag string
)

Functions

func Backup

func Backup() error

func BackupHandler

func BackupHandler(_ *url.URL) error

func CascadeValidation added in v0.4.88

func CascadeValidation() error

func CascadeValidationHandler added in v0.4.88

func CascadeValidationHandler(u *url.URL) error

func Cleanup

func Cleanup(
	ids []string,
	operatingSystems []vangogh_integration.OperatingSystem,
	langCodes []string,
	downloadTypes []vangogh_integration.DownloadType,
	noPatches bool,
	all, test, delete bool) error

func CleanupHandler

func CleanupHandler(u *url.URL) error

func Dehydrate added in v0.4.70

func Dehydrate(
	ids []string,
	its []vangogh_integration.ImageType,
	force bool) error

func DehydrateHandler added in v0.4.70

func DehydrateHandler(u *url.URL) error

func GetData

func GetData(since int64, force bool) error

func GetDataHandler

func GetDataHandler(u *url.URL) error

func GetDescriptionImages added in v0.8.40

func GetDescriptionImages(ids []string, since int64, force bool) error

func GetDescriptionImagesHandler added in v0.8.40

func GetDescriptionImagesHandler(u *url.URL) error

func GetDownloads

func GetDownloads(
	ids []string,
	operatingSystems []vangogh_integration.OperatingSystem,
	langCodes []string,
	downloadTypes []vangogh_integration.DownloadType,
	noPatches bool,
	missing,
	force bool) error

func GetDownloadsHandler

func GetDownloadsHandler(u *url.URL) error

func GetImages

func GetImages(ids []string, its []vangogh_integration.ImageType, missing, force bool) error

GetImages fetches remote images for a given type (box-art, screenshots, background, etc.). If requested it can check locally present files and download all missing (used in data files, but not present locally) images for a given type.

func GetImagesHandler

func GetImagesHandler(u *url.URL) error

func GetSummary

func GetSummary() error

func GetSummaryHandler

func GetSummaryHandler(u *url.URL) error

func GetVideoMetadata added in v0.5.97

func GetVideoMetadata(ids []string, missing, force bool) error

func GetVideoMetadataHandler added in v0.5.97

func GetVideoMetadataHandler(u *url.URL) error

func Health added in v0.4.69

func Health(u string) error

func HealthHandler added in v0.4.69

func HealthHandler(u *url.URL) error

func Info

func Info(ids ...string) error

func InfoHandler

func InfoHandler(u *url.URL) error

func LocalTag

func LocalTag(ids []string, operation string, tagName string) error

func LocalTagHandler

func LocalTagHandler(u *url.URL) error

func NegOpt

func NegOpt(option string) string

func NewAtomFeedContent added in v0.4.35

func NewAtomFeedContent(rdx redux.Readable, summary map[string][]string) string

func Reduce

func Reduce() error

func ReduceHandler

func ReduceHandler(_ *url.URL) error
func Search(query map[string][]string) error

Search using provided property: values query

func SearchHandler

func SearchHandler(u *url.URL) error

func Serve

func Serve(port int, stderr bool) error

Serve starts a web server, listening to the specified port with optional logging

func ServeHandler

func ServeHandler(u *url.URL) error

func Size

func Size(
	ids []string,
	operatingSystems []vangogh_integration.OperatingSystem,
	langCodes []string,
	downloadTypes []vangogh_integration.DownloadType,
	noPatches bool,
	missing bool,
	all bool) error

func SizeHandler

func SizeHandler(u *url.URL) error

func StaleDehydrations added in v0.4.92

func StaleDehydrations(fix bool) error

StaleDehydrations needs to be in cli to avoid import cycle

func Summarize

func Summarize(since int64) error

func SummarizeHandler

func SummarizeHandler(u *url.URL) error

func Sync

func Sync(
	since int64,
	syncOpts *syncOptions,
	operatingSystems []vangogh_integration.OperatingSystem,
	langCodes []string,
	downloadTypes []vangogh_integration.DownloadType,
	noPatches bool,
	debug, force bool) error

func SyncHandler

func SyncHandler(u *url.URL) error

func Tag

func Tag(ids []string, operation, tagName string) error

func TagHandler

func TagHandler(u *url.URL) error

func UpdateDownloads

func UpdateDownloads(
	ids []string,
	operatingSystems []vangogh_integration.OperatingSystem,
	langCodes []string,
	downloadTypes []vangogh_integration.DownloadType,
	noPatches bool,
	since int64,
	updatesOnly bool) error

func UpdateDownloadsHandler

func UpdateDownloadsHandler(u *url.URL) error

func Validate

func Validate(
	ids []string,
	operatingSystems []vangogh_integration.OperatingSystem,
	langCodes []string,
	downloadTypes []vangogh_integration.DownloadType,
	noPatches bool,
	allNotValid bool) error

func ValidateHandler

func ValidateHandler(u *url.URL) error

func VersionHandler added in v0.5.24

func VersionHandler(_ *url.URL) error

func Vet

func Vet(
	vetOpts *vetOptions,
	operatingSystems []vangogh_integration.OperatingSystem,
	langCodes []string,
	downloadTypes []vangogh_integration.DownloadType,
	noPatches bool,
	fix bool) error

func VetHandler

func VetHandler(u *url.URL) error

func Wishlist

func Wishlist(addProductIds, removeProductIds []string) error

func WishlistHandler

func WishlistHandler(u *url.URL) error

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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