Documentation
¶
Overview ¶
Package paths 管理 javdb-cli 本机状态文件的路径。
Index ¶
- Constants
- func AuthPath() (string, error)
- func ConfigPath() (string, error)
- func DeviceUUIDPath() (string, error)
- func Dir() (string, error)
- func EnsureDefaultConfigFile() error
- func EnsureDir() (string, error)
- func ReverseSearchCacheDir() (string, error)
- func RouteCachePath() (string, error)
- func TagTaxonomyPath(zone string) (string, error)
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 ConfigPath ¶
func DeviceUUIDPath ¶
func EnsureDefaultConfigFile ¶
func EnsureDefaultConfigFile() error
EnsureDefaultConfigFile 在配置首次缺失时创建只含常用选项的私有基线文件。
func ReverseSearchCacheDir ¶ added in v0.7.0
ReverseSearchCacheDir 返回反搜响应缓存的目录(~/.javdb-cli/reverse-search-cache)。
func RouteCachePath ¶
RouteCachePath 返回自动选线路由缓存文件的路径(~/.javdb-cli/route.json)。
func TagTaxonomyPath ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.