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

config

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 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/<cwd-basename>/graph.json — preferred (global store by project name)
  2. ~/.vela/graph.json — fallback for single-project setups
  3. ./.vela/graph.json — local override
  4. ./vela-out/graph.json — legacy backward-compat

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 at ~/.vela/vela-out/ so all graphs live in one place.

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