cmdutil

package
v0.1.13 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2025 License: BSD-3-Clause Imports: 11 Imported by: 0

Documentation

Overview

Package cmdutil contains logic shared by executables under the cmd directory.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddSchemeToServer

func AddSchemeToServer(server string) string

AddSchemeToServer prepends "https://" to server if it doesn't appear to already contain a scheme.

func GetReleaseRecordingsInput

func GetReleaseRecordingsInput(ctx context.Context, db *mbdb.DB, mbidOrURL string) (io.Reader, error)

GetReleaseRecordingsInput fetches the release specified by mbidOrURL and returns an io.Reader containing the release's recordings, one MBID per line.

func MergeReleaseRecordings

func MergeReleaseRecordings(ctx context.Context, db *mbdb.DB,
	mbidsOrURLs []string, rangeDescs []string) ([]seed.Edit, error)

MergeReleaseRecordings generates seed.MergeEdit objects to merge the recordings in the same tracklist positions in the specified releases.

Types

This section is empty.

Jump to

Keyboard shortcuts

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