# Functions
AddIngoredPaths globally appends to the IngoredPaths list.
ChdirToUPM traverses upwards in the filesystem from the current directory until it finds a directory entry named .upm, and changes to the directory containing it.
cutPrefixes offers strings.CutPrefix but for however many choices we may have.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
DownloadFile emulates wget, overwriting any existing file.
Exists returns true if a directory entry by the given filename exists.
GetCmdOutput prints and runs the given command, returning its stdout as a string.
GetCmdOutputFallible prints and runs the given command, returning its stdout as a string.
GetExitCode runs a commands, and optionally prints the output to stdout and/or stderr, and it returns the exit code afterwards.
GetResource returns a static resource as a string.
GetResourceBytes is like GetResource but returns a []byte.
GuessWithTreeSitter guesses the imports of a directory using tree-sitter.
Log is like fmt.Println, but writes to stderr and is inhibited by --quiet.
NotImplemented terminates the process, indicating that the operation is not implemented.
Panicf is a composition of fmt.Sprintf and panic.
PatternExists returns true if the given glob matches any file in the current directory.
ProgressMsg prints the given message to stderr with a prefix.
Regexps compiles each provided pattern into a regexp object, and returns a slice of them.
RunCmd prints and runs the given command, exiting the process on error or command failure.
SearchRecursive does a recursive regexp search in the current directory.
TempDir creates and returns the name of temporary directory.
TryWriteAtomic tries to write contents to filename atomically, retrying non-atomically if it can't.
WriteResource writes a static resource to a temporary directory.
# Constants
Represents filesystem nodes, including directories.
# Variables
IgnoredPaths is a slice of file patterns that are totally ignored by UPM.
# Structs
AuthorInfo represents the author of a package.