-
Notifications
You must be signed in to change notification settings - Fork 0
Implement main file functionality #5
Copy link
Copy link
Closed
Description
Our application should have functionality for start up with arguments:
-e- expression-f- input file (instead of expression)-o- output file for result (if not set - pipe result to default stdout (console))
Usage example:
-e "5 5 +"-f my-input.txt-o result.txtgo run ./cmd/example -e “42 1 -” -o result.txtgo run ./cmd/example -f input.txt
Use flag library to parse command line arguments: https://pkg.go.dev/flag
Errors should be piped into stderr stream.
The input and output should be injected into ComputeHandler using Dependency Injection.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
featureNew feature or requestNew feature or request