# Functions
AddCleanup adds a function to the cleanup stack.
Cleanup is responsible for cleaning up any left-over files and things.
CreateContext returns a fresh evaluated models.NestContext for the passed path.
CreateContextFromCurrentWorkingDir returns a fresh evaluated models.NestContext from the current working directory.
No description provided by the author
EvaluateContext is a wrapper function for internal.CreateContext that also performs automatic validation on
the context's configuration.
FindProjectRoot takes a directory and searches this and upper directories for a
`nestmodules.toml` configuration file in its root- or a `.config` subdirectory.
No description provided by the author
FmtSubmodulesGitIgnore returns a string that formats a slice of models.Submodule into a string that can be used by git to ignore the submodules' paths.
HandleOsTerminationSignals handles received system signals, calls a callback and exists.
PathContainsUp returns whether the passed models.Path contains any "..".
PathOutsideRoot returns whether a given path is not located within a root path.
PathRelativeToRootWithJoinedOriginIfNotAbs is a somewhat complicated function.
PopulateNestConfigFromToml populates a models.NestConfig from a configuration in TOML's markup language.
SubmoduleExists returns whether and in what state a possible submodule exists.
SubmodulesExist takes multiple submodules and verifies their existence in bulk
*/.
SubmoduleStatusValid returns if a status belongs to being valid
*/.
SubmodulesToTomlConfig returns a configuration string in TOML's markup language for more structs of type models.Submodule.
SubmoduleToTomlConfig returns a configuration string in TOML's markup language for a single models.Submodule.
SubmoduleValid takes multiple submodules and verifies their existence in bulk
*/.
ValidSubmodulesCount how many passed submodules are valid.
WriteNestConfig writes models.Submodule configuration into the git-nest configuration file, preserving the first [config] section.
WriteProjectConfigFiles is a total wrapper function for internal.WriteSubmoduleIgnoreConfig and internal.WriteNestConfig,
calling both functions based on the passed models.NestContext.
WriteSubmoduleIgnoreConfig uses internal.FmtSubmodulesGitIgnore, wraps it with some user information and writes that
into the passed file.
# Constants
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
# Structs
No description provided by the author
No description provided by the author
No description provided by the author