cli

package
v0.0.0-...-3507880 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2026 License: GPL-3.0 Imports: 17 Imported by: 0

Documentation

Overview

Package cli implements the embyfin-mcp command line interface: the cobra commands, flag and config handling, and the MCP server exposing library curation tools to AI clients.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Make

func Make() (*cobra.Command, error)

func ValidateParams

func ValidateParams(params []string) func(cmd *cobra.Command, args []string) error

Types

type FlagData

type FlagData struct {
	Backend      string `mapstructure:"backend"`
	Server       string `mapstructure:"server"`
	Token        string `mapstructure:"token"`
	EnableDelete bool   `mapstructure:"enable-delete"`
	Listen       string `mapstructure:"listen"`
	AuthToken    string `mapstructure:"auth-token"`
}

func GetFlags

func GetFlags() *FlagData

GetFlags returns the fully populated FlagData. We must unmarshal from Viper instead of using globally bound pflags variables because pflags only parses command-line arguments. Viper merges environment variables (and config files) on top of the CLI flags.

func (*FlagData) NewClient

func (f *FlagData) NewClient() (*embyfin.Client, error)

Jump to

Keyboard shortcuts

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