Help us shape the future of Go! Take the 2026 Go Developer Survey

config

package
v1.10.6 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultVaultDir added in v1.2.0

func DefaultVaultDir() string

DefaultVaultDir returns ~/Documents/vela — a visible location Obsidian can open directly.

func FindGraphFile added in v1.2.0

func FindGraphFile(startDir string) (string, error)

FindGraphFile resolves graph.json for the current working directory. Search order:

  1. ./.vela/graph.json — active workspace graph
  2. ./vela-out/graph.json — legacy repo-local store
  3. ~/.vela/graph.json — canonical global store
  4. ~/.vela/vela-out/graph.json — legacy global store

func GraphFilePath added in v1.2.0

func GraphFilePath(outDir string) string

GraphFilePath returns the canonical graph.json path inside an out directory.

func Load

func Load() (*types.Config, error)

Load reads ~/.vela/config.yaml and returns a Config. If the file does not exist, the defaults are returned without error.

func OutDir added in v1.2.0

func OutDir(root string) string

OutDir returns the output directory for a given project root. Output is stored directly at ~/.vela/ so graph data, cache, and runtime state all live under one canonical root.

func RegistryFilePath added in v1.7.1

func RegistryFilePath() string

RegistryFilePath returns the global tracked-repository registry path.

func ResolveVaultDir added in v1.3.0

func ResolveVaultDir(raw string) string

ResolveVaultDir maps an Obsidian vault_dir config value to the canonical destination. Empty and legacy repo-local values are migrated to ~/Documents/vela so old configs stop recreating ./vela-out/obsidian.

func WriteDefault

func WriteDefault(force bool) (string, error)

WriteDefault writes the default config to ~/.vela/config.yaml. Returns an error if the file already exists (use force=true to overwrite).

Types

This section is empty.

Jump to

Keyboard shortcuts

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