https://github.com/dehasi/sd-hw2
https://github.com/dehasi/sd-hw2
Last synced: 5 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/dehasi/sd-hw2
- Owner: dehasi
- Created: 2024-02-13T18:38:28.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-02-13T18:42:39.000Z (over 2 years ago)
- Last Synced: 2025-10-11T19:08:40.618Z (10 months ago)
- Size: 1.95 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Practice 2 Homework (SOLID)
Write a CLI application that supports the following commands
* `cat /path/to/file` - prints the file content
* `lc /path/to/file` - prints lines count
* `help` - prints available commands
For simplicity, it’s supposed that paths to files are absolute.
```
$ ./my-app
> lc /Users/ravil/file.txt
3
> cat /Users/ravil/file.txt
Line #1
Line #2
Line #3
> help
cat
help
lc
```
You can add any commands that might be helpful for you (i.e., `exit`).
Please remember that you will be asked to extend your app in the future homework.
Write clear, maintainable code, use SOLID principles.