attach

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Overview

Package attach handles interfacing the Brief system with a POSIX-style filesystem.

Index

Constants

This section is empty.

Variables

View Source
var ErrBriefBoxsetAlreadyPresent = errors.New("brief boxset already present")
View Source
var ErrMalformedRoot = errors.New("malformed root") // TODO rename
View Source
var ErrNoRoot = errors.New("no root") // TODO rename

Functions

func AbsoluteWorkingDirectory

func AbsoluteWorkingDirectory() (string, error)

TODO: since we now no longer look for dotbrief but briefroot, symlinks and relative paths should no longer be an issue?

func BriefRoot

func BriefRoot() (string, error)

func Config

func Config(fsys vfs.FS) (*config.Config, error)

func OS

func OS(init bool) (vfs.FS, string, error)

init==true fails if there already is a valid root.

func Sack

func Sack(fsys vfs.FS, allowsymlinks bool) (sacks.Sack, error)

[2023-12-09, jfrech] TODO allowsymlinks is currently ignored

Types

This section is empty.

Jump to

Keyboard shortcuts

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