Skip to content

Conversation

@Priyans-hu
Copy link
Owner

Summary

Implements the core CLI commands for sreq:

  • sreq init - Initialize config directory with encryption key
  • sreq config show/path - View configuration
  • sreq service list/add/remove - Manage services
  • sreq env list/switch/current - Manage environments
  • sreq run - HTTP request command (dry-run mode works)
  • sreq version - Version info with Go/OS details

Changes

  • Split monolithic root.go into separate command files
  • Added AES-256 encryption key generation on init
  • Fixed gitignore pattern that was excluding cmd/sreq/ files

Test plan

  • sreq --help shows all commands
  • sreq init creates ~/.sreq/ with config files and encryption key
  • sreq config show displays configuration
  • sreq service add/list/remove works
  • sreq env list/switch/current works
  • sreq run GET /api -s svc --dry-run shows expected output
  • Build passes (go build ./...)
  • Linters pass (go vet ./...)

Next steps

  • Implement Consul provider (actual credential fetching)
  • Implement AWS Secrets Manager provider
  • Wire up sreq run to actually make HTTP requests

- Add init command with encryption key generation
- Add config show/path commands
- Add service list/add/remove commands
- Add env list/switch/current commands
- Add run command with dry-run support
- Add version command with Go/OS info
- Fix gitignore pattern for sreq binary
- Reorganize commands into separate files
- Add --path flag for explicit path mappings
- Support mixed providers (consul:, aws:) and JSON keys (#key)
- Update ServiceConfig type with Paths field
- Update services.yaml template with both mode examples
- Update service list to display advanced mode services
@Priyans-hu Priyans-hu merged commit 4d7c04b into main Jan 18, 2026
@Priyans-hu Priyans-hu deleted the feat/core-commands branch January 22, 2026 19:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants