How yuzhian/linkit works
Linkit is a command-line dotfiles manager. A user invokes commands through the CLI; it loads the registered repository configuration, then dispatches repository setup or an entry operation. Linking moves a system path into the repository, creates a symlink, and records the mapping; unlinking restores the file, removal deletes it, and deployment applies manifest mappings. The manifest also configures an optional open command. The excerpts show command dispatch and persistence calls; the README is empty, so broader capabilities are limited to those evident in the CLI and handler.
Main entry points: main.rs Command dispatch · config.rs Manifest persistence · handler.rs Repository setup
Components 13
CLI and dispatch
- Command dispatch
src/main.rs
Repository operations
- Repository setup
src/handler.rs - Link entries
src/handler.rs - Unlink entries
src/handler.rs - Remove entries
src/handler.rs - Deploy mappings
src/handler.rs - Open repository
src/handler.rs
Configuration and state
- Config persistence
src/config.rs - Manifest persistence
src/config.rs
System integrations
- Local filesystem
- Git executable
- Command shell
Other components
- User
Connections 21
- User → Command dispatch: invokes
src/main.rs - Command dispatch → Config persistence: loads config
src/main.rs - Command dispatch → Repository setup: dispatches setup
src/main.rs - Command dispatch → Link entries: dispatches link
src/main.rs - Command dispatch → Unlink entries: dispatches unlink
src/main.rs - Command dispatch → Remove entries: dispatches remove
src/main.rs - Command dispatch → Deploy mappings: dispatches deploy
src/main.rs - Command dispatch → Open repository: dispatches open
src/main.rs - Repository setup → Config persistence: saves config
src/handler.rs - Repository setup → Git executable: runs git
src/handler.rs - Repository setup → Local filesystem: creates files
src/handler.rs - Link entries → Manifest persistence: reads and saves
src/handler.rs - Link entries → Local filesystem: moves and links
src/handler.rs - Unlink entries → Manifest persistence: reads and saves
src/handler.rs - Unlink entries → Local filesystem: restores file
src/handler.rs - Remove entries → Manifest persistence: reads and saves
src/handler.rs - Remove entries → Local filesystem: deletes files
src/handler.rs - Deploy mappings → Manifest persistence: loads mappings
src/handler.rs - Deploy mappings → Local filesystem: creates links
src/handler.rs - Open repository → Manifest persistence: loads command
src/handler.rs - Open repository → Command shell: runs command
src/handler.rs