shellfs

package
v1.6.1 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Package shellfs materializes an embedded UI tree onto the filesystem, since quickshell needs real paths. Trees are extracted read-only, keyed by a build-time revision file (.dankrev) when the tree carries one, else by content hash computed and verified on every resolution.

Index

Constants

View Source
const (

	// RevFile names a build-time revision key inside the UI tree (8-64 hex
	// chars). It spares every resolution a full content hash: the extracted
	// dir is trusted when its RevFile matches the embedded one.
	RevFile = ".dankrev"
)

Variables

This section is empty.

Functions

func Extract

func Extract(fsys fs.FS, baseDir string) (string, error)

func Prune

func Prune(baseDir, keep string)

Prune removes previously extracted revisions under baseDir, keeping keep. Callers must ensure no running instance still uses the others.

Types

This section is empty.

Jump to

Keyboard shortcuts

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