workspace

package
v0.13.4 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package workspace owns JCode-managed local working directories.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateScratch

func CreateScratch(now time.Time) (string, error)

CreateScratch creates one private workspace named YYYY-MM-DD-NNN. The sequence is scoped to the local calendar day and allocated with an exclusive mkdir, so concurrent creators can race safely without a shared counter file.

func ScratchRoot

func ScratchRoot() string

ScratchRoot returns the directory that contains JCode-managed, no-project workspaces. It follows config.ConfigDir so isolated HOME test environments never touch a user's real ~/.jcode directory.

func ValidateScratchPath

func ValidateScratchPath(path string) error

ValidateScratchPath verifies that path is an existing, real directory created directly beneath ScratchRoot with the managed date/sequence name. Persisted metadata marked scratch must pass this check before it can select the scratch-only engine factory.

Types

This section is empty.

Jump to

Keyboard shortcuts

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