claude

package
v1.0.0 Latest Latest
Warning

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

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

Documentation

Overview

Package claude knows the location of the configuration and auth files that Claude Code CLI stores in the user home directory.

Only the entries that are relevant to login/session continuity are tracked here. The list is intentionally narrow but easy to extend.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HomeDir

func HomeDir() (string, error)

HomeDir returns the current user home directory.

Types

type Item

type Item struct {
	// RelPath is the path relative to the home directory (e.g. ".claude" or
	// ".claude.json"). Always POSIX-style; the profile layer converts it to
	// the platform separator when building the mirror tree.
	RelPath string
	// IsDir is true when the entry is a directory.
	IsDir bool
}

Item represents a file or directory used by Claude Code CLI, relative to the user home directory.

func Items

func Items() []Item

Items returns the list of Claude Code CLI files and directories that css manages per-profile. An entry may be listed even when it does not currently exist on disk -- copy and remove operations tolerate missing sources.

func (Item) AbsPath

func (i Item) AbsPath(home string) string

AbsPath resolves the item to an absolute path under the given home directory.

Jump to

Keyboard shortcuts

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