Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/punitpandey/decipher
https://github.com/punitpandey/decipher
Last synced: 16 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/punitpandey/decipher
- Owner: punitpandey
- License: gpl-3.0
- Created: 2021-10-16T10:16:58.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-10-17T06:49:59.000Z (over 1 year ago)
- Last Synced: 2024-11-11T14:25:21.985Z (3 months ago)
- Language: Go
- Size: 45.9 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# decipher
Scratch repo setup with file/cli communication capability.### structure
* 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## Usage
1. Create handler instance using `GetHandles` that returns HandleProvider.
2. Create command implementor client(cli/file client, say _commander_), using HandleProvider and delimiter config(Ex: "\n").
3. Inject command implementor client(say _commander_) to command client that returns command handler.
4. Use command handler `Run` method to run the commander.