Documentation
¶
Overview ¶
Package safety holds the checks every action passes before it touches anything. They are fixed in code, not settings.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Inside ¶
Inside returns an error unless path resolves inside one of the roots. Symlinks are resolved, so a link cannot lead an action out of the folder.
func ShellQuote ¶
ShellQuote quotes one word for a POSIX shell (sh, bash, zsh) with single quotes, so spaces and $ in paths like "My Projects" stay literal. Not for fish: it reads \\ inside single quotes as one backslash.
func SplitWords ¶
SplitWords splits a command typed by the user into words, honouring single and double quotes and backslash escapes. It never expands anything.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.