Commit Graph

12 Commits

Author SHA1 Message Date
39a1d4482a feat: add persistent profile storage to ~/.kvs/config.json
Implemented roadmap #1: Configuration file for persistent profiles.

Features:
- Auto-saves profiles to ~/.kvs/config.json on add/use/remove
- Auto-loads profiles on shell startup
- File created with 0600 permissions for token security
- Shows active profile in welcome message
- Added 'profile save' and 'profile load' commands for manual control

Technical details:
- Created config.go with LoadConfig/SaveConfig functions
- Profile changes automatically trigger persistence
- ~/.kvs directory created with 0700 permissions if missing
- Gracefully handles missing config file on first run

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-05 23:47:13 +03:00
0c9e314d7c refactor: split monolithic main.go into modular structure
Refactored 800+ line main.go into clean, domain-separated files:
- main.go (96 lines) - Entry point and command router only
- types.go - Type definitions and data structures
- client.go - HTTP client and request handling
- cmd_kv.go - Key-value operations (get/put/delete)
- cmd_meta.go - Resource metadata commands
- cmd_user.go - User management commands
- cmd_profile.go - Profile management
- cmd_cluster.go - Cluster operations (members/health)
- cmd_system.go - System commands (connect/auth/help)
- utils.go - Shared utilities (parsing, colors, completion)

No functional changes, pure reorganization for maintainability.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-05 23:34:18 +03:00
fcd27dee97 chore: update documentation 2025-10-05 23:19:09 +03:00
Kalzu Rekku
3287c38836 Fix merge left overs. 2025-10-05 22:53:20 +03:00
Kalzu Rekku
f7f956de47 Merge remote-tracking branch 'origin/risto' 2025-10-05 22:45:26 +03:00
Kalzu Rekku
fe45fa5254 Added commands to set meta data, like owner, group and permissions of key. 2025-10-05 22:38:25 +03:00
999deccb74 fix: JSON quote parsing 2025-10-05 22:27:26 +03:00
88a3b9824a fix: show friendlier error message for JSON parsing 2025-10-05 22:27:26 +03:00
8edbfacda5 Add Claude 2025-10-05 22:27:26 +03:00
Kalzu Rekku
ad17dff2fa Fix json quotation bug. 2025-10-05 21:39:09 +03:00
Kalzu Rekku
d69240913a added plan for future stuff, roadmap.md. 2025-10-05 20:17:07 +03:00
Kalzu Rekku
3ae9395f9d Initial commit. The shell now combiles and runs. 2025-10-05 20:03:35 +03:00