catalog

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2025 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Overview

Package catalog provides common catalog operations for CLI commands.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Load

func Load() (catalogs.Catalog, error)

Load creates a starmap instance and returns its catalog. This handles the common pattern of starmap.New() -> sm.Catalog().

func LoadFromFiles

func LoadFromFiles(inputPath string) (starmap.Starmap, catalogs.Catalog, error)

LoadFromFiles creates a starmap instance from a file-based catalog. Useful for commands that work with external catalog directories.

func LoadWithOptions

func LoadWithOptions(opts ...starmap.Option) (starmap.Starmap, catalogs.Catalog, error)

LoadWithOptions creates a starmap instance with custom options and returns its catalog. Useful for commands that need specific catalog configurations (like update command).

Types

This section is empty.

Jump to

Keyboard shortcuts

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