An open API service indexing awesome lists of open source software.

https://github.com/dehasi/sd-hw2


https://github.com/dehasi/sd-hw2

Last synced: 5 months ago
JSON representation

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.