kunyavskiy / polygon-cli

Command-line tool for polygon
MIT License
58 stars 17 forks source link

Source files and solutions with same names are saved to the same local file #24

Open KalininN opened 7 years ago

KalininN commented 7 years ago

If some problem has a source file a.cpp and a solution a.cpp then:

$ polygon-cli init ...
$ polygon-cli update
Invoking problem.files 200
Invoking problem.solutions 200
Downloading new file a.cpp to src/a.cpp
Invoking problem.viewFile 200
...
Updating local file a from a.cpp
Invoking problem.viewSolution 200
...
|  solution |     a.cpp      |     src/a.cpp      | Not changed |
kunyavskiy commented 7 years ago

Well, it's may be not very good, but intended solution. This is need to not writing full paths all time. I'm not sure it's easy to fix it. Any way, why source and solution should have same name. It can be not portable to some other problem archive formats.