userdir

package
v1.25.0 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

type Manager struct {
	// contains filtered or unexported fields
}

Manager handles user-specific directory operations

func NewManager

func NewManager(baseDir string, enabled bool) *Manager

NewManager creates a new user directory manager

func (*Manager) EnsureUserClaudeDir

func (m *Manager) EnsureUserClaudeDir(userID string) (string, error)

EnsureUserClaudeDir creates the user Claude directory if it doesn't exist

func (*Manager) EnsureUserHomeDir

func (m *Manager) EnsureUserHomeDir(userID string) (string, error)

EnsureUserHomeDir creates the user home directory if it doesn't exist

func (*Manager) GetUserClaudeDir

func (m *Manager) GetUserClaudeDir(userID string) (string, error)

GetUserClaudeDir returns the Claude directory for a specific user

func (*Manager) GetUserEnvironment added in v1.23.0

func (m *Manager) GetUserEnvironment(userID string, baseEnv []string) ([]string, error)

GetUserEnvironment returns environment variables with user-specific CLAUDE_DIR set

func (*Manager) GetUserHomeDir

func (m *Manager) GetUserHomeDir(userID string) (string, error)

GetUserHomeDir returns the home directory for a specific user

func (*Manager) IsEnabled

func (m *Manager) IsEnabled() bool

IsEnabled returns whether multiple users mode is enabled

Jump to

Keyboard shortcuts

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