flagfile

package
v0.16.1 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package flagfile reads picocli-style @file references and expands them into a flat argument slice. Shared by all pbflags CLI binaries.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExpandArgs

func ExpandArgs(args []string) ([]string, error)

ExpandArgs reads picocli-style @file references in args and expands them. The file format is one --flag=value per line, with # comments and optional quoting.

After expansion, host-local overrides from ~/.config/pbflags/<binary>.flags are merged with last-wins semantics (override matching flags, append new ones). This allows per-host config without modifying checked-in files.

Types

This section is empty.

Jump to

Keyboard shortcuts

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