Documentation
¶
Index ¶
- func PeelGlobalFlag(args []string) (global bool, rest []string)
- func Restore(path string, prev []byte, perm os.FileMode) error
- func WriteAtomic(path string, data []byte, perm os.FileMode) error
- func WriteTarget(files []string) (string, error)
- func WriteTargetForAdd(files []string, global bool) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PeelGlobalFlag ¶ added in v0.1.16
PeelGlobalFlag removes -g/--global from args.
func WriteAtomic ¶
WriteAtomic writes data to path via a temp file in the same directory.
func WriteTarget ¶
WriteTarget picks the local-scoped config path used for /add writes.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.