mgunyho / tere

Terminal file explorer
European Union Public License 1.2
1.68k stars 38 forks source link

Added setup for Windows Command Prompt (cmd) #36

Closed joedf closed 2 years ago

joedf commented 2 years ago

Setup for CMD / Windows Command Prompt.

mgunyho commented 2 years ago

Thanks! Could you add an if-else check that the output is not empty. This way e.g. tere --help should work correctly (please check that it does, I don't know how cmd handles stderr/stdout).

Note that I will be offline for a couple of weeks starting tomorrow so it will take a while before I can merge this.

joedf commented 2 years ago

No worries. Looks like like I forgot to pass on arguments, fixed now. As for the empty check IF [%OUTPUT%] == [] goto :EOF, there's no use for it to be there since the help text is processed. However, this is okay since cd will simply do nothing.

joedf commented 2 years ago

Been using it since, works great no issues so far! 👍

mgunyho commented 2 years ago

I'm glad to hear that! Just one more question: does tere --version or tere --help work as expected?

joedf commented 2 years ago

I'm glad to hear that! Just one more question: does tere --version or tere --help work as expected?

Yes, they do. Just tested again to be sure.

mgunyho commented 2 years ago

Thanks a lot! I'll rebase and then merge this.