Scratch repo setup with file/cli communication capability.
- handler: have implementation in handler.go and handlers in handlers.go
- command: have definition in command.go
- cli/cli.go: cli command implementation
- file/file.go: file command implementation
- Create handler instance using
GetHandles
that returns HandleProvider. - Create command implementor client(cli/file client, say commander), using HandleProvider and delimiter config(Ex: "\n").
- Inject command implementor client(say commander) to command client that returns command handler.
- Use command handler
Run
method to run the commander.