keepcosmos / terjira

Terjira is a very interactive and easy to use CLI tool for Jira.
MIT License
877 stars 38 forks source link

[bug] problem with parsing commandline arguments #39

Open msva opened 7 years ago

msva commented 7 years ago

Looks like terjira has a problem with parsing commandline arguments (or unicode in them):

$ jira issue new -P Low -a mva -S '[Трекер] Конфиги веб-серверов (см. описание)' -d 'Необходимо пройтись по серверам (начиная с servername) и переделать конфигурации NginX и PHP-FPM на более пригодные для автоматизации управления конфигами' -p ADMIN
Choose issue type? Внедрение новой технологии
project: project is required # <- !! (-p was specified! But okay, let's remove it and set it interactively)

$ jira issue new -P Low -a mva -S '[Трекер] Конфиги веб-серверов (см. описание)' -d 'Необходимо пройтись по серверам (начиная с servername) и переделать конфигурации NginX и PHP-FPM на более пригодные для автоматизации управления конфигами'
Choose project? ADMIN - Server administration
Choose issue type? Внедрение новой технологии
summary: Operation value must be a string, description: Operation value must be a string

Pretty the same with posting comments from commandline arguments (both by issue comment and by issue trans -m). In both ways it fails to post comment (in trans it just ignores it, and in comment it throws error and requires to post interactively).

By the way, it probably must be reported as separate issue, but "intercative" mode in issue comment has issue with long lines (when you wrote a line longer then terminal window width, it duplicate the line many times (once for every time you type new letter)

keepcosmos commented 7 years ago
  1. I tried many times create issues like your example, but it's hard to figure out what problem is. In my case, It works right way. Can you debug or check you jira configuration? This bug is related to #29

  2. Terjira uses tty-prompt for interactive mode. If you don't mind, please report your issue to tty-prompt.