module

Waypoints::DBPath

Resolves the database location shared by the CLI and other callers.

Constants

DEFAULT_RELATIVE_PATH = File.join(".local", "share", "waypoints", "waypoints.db")

Class methods

resolve(flag_path : String | Nil = nil, env_path : String | Nil = ENV["WAYPOINTS_DB"]?, home : String = Path.home.to_s) : String

Resolves flag, environment, and home-directory paths in descending precedence.

Source