Documentation
¶
Overview ¶
Package paths provides utilities for resolving standard memsh filesystem paths. All paths are relative to the user's home directory (~/.memsh or ~/.memshrc). Functions that create directories will create them with mode 0755 if they don't exist.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConfigFile ¶
ConfigFile returns the path to ~/.memsh/config.toml. The directory will NOT be created. Returns an error if the home directory cannot be determined.
func HistoryDir ¶
HistoryDir returns the path to ~/.memsh/history, creating it if needed. Returns an error if the home directory cannot be determined or if directory creation fails.
func MemshDir ¶
MemshDir returns the ~/.memsh directory path, creating it if needed. Returns an error if the home directory cannot be determined or if directory creation fails.
func MemshrcFile ¶
MemshrcFile returns the path to ~/.memshrc. The file will NOT be created. Returns an error if the home directory cannot be determined.
func PluginDir ¶
PluginDir returns the path to ~/.memsh/plugins, creating it if needed. Returns an error if the home directory cannot be determined or if directory creation fails.
func SSHHostKeyFile ¶
SSHHostKeyFile returns the path to ~/.memsh/ssh_host_key. The file will NOT be created. Returns an error if the home directory cannot be determined.
Types ¶
This section is empty.