dwaring87 / rtm-cli

Remember the Milk Command Line Interface
MIT License
66 stars 14 forks source link

Certain options cause rtm-cli to not print output (or execute commands?) #15

Open paulstodghill opened 5 years ago

paulstodghill commented 5 years ago

I recently upgraded to version 1.5.1. Previously, I was able to use the "-p" and "-s" options to simplify the output when running on a dumb terminal (e.g., Emacs shell buffer). Now, when I use these options (and "-c"), even under a "normal" terminal window (e.g., xterm, Gnome Terminal), rtm prints neither the "Logged In As" message nor the ">" prompt. Typing in commands (e.g., "add task1") does not appear to work.

$ rtm
Logged In As: XXXXXXXX
> quit
$ rtm -c
[ no output after minutes ]

Interestingly, it does respond to CTRL-D (Unix end-of-file) and exits with a successful status.

I observe this behavior both under Linux and MacOS.

$ npm --version
6.9.0
$ rtm --version
1.5.1
$
dwaring87 commented 5 years ago

Thanks for pointing this out. It looks like I introduced this bug in the last update. With a flag present but no command given, it doesn't start the interactive mode like it should.

Until this is fixed, you can still start the interactive mode with just rtm and then add the flag to the first command in the interactive mode (ie ls -p). The flags are "sticky" in the sense that all subsequent commands in the session will have the flag set.

paulstodghill commented 5 years ago

Excellent. Thank you for the workaround.

paulstodghill commented 5 years ago

Whoops. Hit the wrong button. Sorry about that.