Documentation
¶
Index ¶
- func AtomicWrite(path string, content []byte) error
- func BuildDaemonCommand() *cli3.Command
- func BuildDiagnosticsCommand() *cli3.Command
- func BuildEditCommand() *cli3.Command
- func BuildGraphCommand() *cli3.Command
- func BuildIndexCommand() *cli3.Command
- func BuildInitCommand() *cli3.Command
- func BuildNewCommand() *cli3.Command
- func BuildQueryCommand() *cli3.Command
- func BuildRootCommand() *cli3.Command
- func BuildViewCommand() *cli3.Command
- func GetVaultFromContext(ctx context.Context, cmd *cli3.Command) (string, error)
- func ResolveVault(vaultFlag string) (string, error)
- func ValidateVault(vaultRoot string) error
- type DiagnosticResult
- type TypeBundle
- type TypeDef
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AtomicWrite ¶
AtomicWrite writes content to a file atomically using temp file + fsync + rename This ensures the file is never in a partially-written state
func BuildDaemonCommand ¶
BuildDaemonCommand builds the daemon command
func BuildDiagnosticsCommand ¶
BuildDiagnosticsCommand builds the diagnostics command
func BuildEditCommand ¶ added in v2.4.0
BuildEditCommand builds the edit command
func BuildGraphCommand ¶
BuildGraphCommand builds the graph command
func BuildIndexCommand ¶
BuildIndexCommand builds the index command
func BuildInitCommand ¶
BuildInitCommand builds the init command
func BuildQueryCommand ¶
BuildQueryCommand builds the query command
func BuildRootCommand ¶
BuildRootCommand builds the root CLI command
func BuildViewCommand ¶ added in v2.5.0
BuildViewCommand builds the view command
func GetVaultFromContext ¶
GetVaultFromContext extracts the vault path from the CLI context The vault flag is on the root command, so we need to check the root
func ResolveVault ¶
ResolveVault resolves the vault root directory It walks upward from the current working directory until it finds a .touchlog/ directory If --vault flag is provided, it uses that instead
func ValidateVault ¶
ValidateVault validates that a vault has the required structure For Phase 0, we only check that .touchlog/config.yaml exists (except for init command)
Types ¶
type DiagnosticResult ¶
type DiagnosticResult struct {
NodeID string `json:"node_id"`
NodeType string `json:"node_type,omitempty"`
NodeKey string `json:"node_key,omitempty"`
Level string `json:"level"`
Code string `json:"code"`
Message string `json:"message"`
Span model.Span `json:"span"`
CreatedAt string `json:"created_at,omitempty"`
}
DiagnosticResult represents a diagnostic with node information
type TypeBundle ¶
TypeBundle represents a predefined set of note types