paths

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2026 License: MIT Imports: 2 Imported by: 0

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

func ConfigFile() (string, error)

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

func HistoryDir() (string, error)

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

func MemshDir() (string, error)

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

func MemshrcFile() (string, error)

MemshrcFile returns the path to ~/.memshrc. The file will NOT be created. Returns an error if the home directory cannot be determined.

func PluginDir

func PluginDir() (string, error)

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

func SSHHostKeyFile() (string, error)

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.

Jump to

Keyboard shortcuts

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