paths

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package paths 管理 javdb-cli 本机状态文件的路径。

Index

Constants

View Source
const AppDirName = ".javdb-cli"

AppDirName is the directory under the user home used for credentials/config.

Variables

This section is empty.

Functions

func AuthPath

func AuthPath() (string, error)

func ConfigPath

func ConfigPath() (string, error)

func DeviceUUIDPath

func DeviceUUIDPath() (string, error)

func Dir

func Dir() (string, error)

Dir returns ~/.javdb-cli (or $HOME/.javdb-cli), creating nothing.

func EnsureDefaultConfigFile

func EnsureDefaultConfigFile() error

EnsureDefaultConfigFile 在配置首次缺失时创建只含常用选项的私有基线文件。

func EnsureDir

func EnsureDir() (string, error)

EnsureDir creates the config directory with 0700 permissions.

func RouteCachePath

func RouteCachePath() (string, error)

RouteCachePath 返回自动选线路由缓存文件的路径(~/.javdb-cli/route.json)。

func TagTaxonomyPath

func TagTaxonomyPath(zone string) (string, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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