Documentation
¶
Index ¶
- func DefaultVaultDir() string
- func FindGraphFile(startDir string) (string, error)
- func GraphFilePath(outDir string) string
- func Load() (*types.Config, error)
- func OutDir(root string) string
- func RegistryFilePath() string
- func ResolveVaultDir(raw string) string
- func WriteDefault(force bool) (string, error)
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
FindGraphFile resolves graph.json for the current working directory. Search order:
- ./.vela/graph.json — active workspace graph
- ./vela-out/graph.json — legacy repo-local store
- ~/.vela/graph.json — canonical global store
- ~/.vela/vela-out/graph.json — legacy global store
func GraphFilePath ¶ added in v1.2.0
GraphFilePath returns the canonical graph.json path inside an out directory.
func Load ¶
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
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
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 ¶
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.