arguments

package
v0.6.3 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package arguments contains shared functions for expanding numeric arguments to the associated file names

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EvaluateEnvironment

func EvaluateEnvironment(arg string, expandRelative bool) string

EvaluateEnvironment evaluates a single arguments and expands environment variables.

For scmpuff-managed position variables only (e.g. $e1, etc), the variable is expanded into a locatable file path, and expandRelative is true, it will be converted into a relative path when possible.

func Expand

func Expand(args []string) []string

Expand takes the list of arguments received from the command line and expands them given our special case rules.

It handles converting numeric file placeholders and range placeholders into environment variable symbolic representation,

Types

This section is empty.

Jump to

Keyboard shortcuts

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