cmdutil

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package cmdutil provides small helpers shared across CLI command packages.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConfigPath

func ConfigPath(cmd *cli.Command) (string, error)

ConfigPath returns the config path from the CLI command's --config flag, or falls back to config.DefaultConfigPath.

func SplitRepos

func SplitRepos(raw []string) []string

SplitRepos flattens a slice of possibly comma-separated repository strings into individual trimmed, non-empty values. It handles both repeated flag usage ([]string{"owner/repo1", "owner/repo2"}) and a single comma-separated string ([]string{"owner/repo1,owner/repo2"}).

Types

This section is empty.

Jump to

Keyboard shortcuts

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