Skip to main content

Module init

Module init 

Source
Expand description

linkmarks init — initialize the LinkMarks store and config.

What it does:

  1. Creates the XDG data directory (~/.local/share/linkmarks/).
  2. Creates the XDG config directory (~/.config/linkmarks/).
  3. Writes a default config.toml if none exists.
  4. Opens the store (which runs the migrator and stamps PRAGMA user_version).

Idempotent: re-running is a no-op when both dirs already exist and config.toml is present.

Structs§

InitArgs

Functions§

run