jira-cli icon indicating copy to clipboard operation
jira-cli copied to clipboard

jira issue view <key> --plain does not work

Open astarrr opened this issue 2 years ago • 5 comments

Describe the bug It seems that the flag --plain is not considered or is not working

Please provide following details

  1. JiraCLI Version:
    (Version="1.0.0-beta", GitCommit="118b51dc3913ba2af0411c9d4a344eaecda8571b", CommitDate="2022-05-09T05:49:06+00:00", GoVersion="go1.17.5", Compiler="gc", Platform="windows/amd64")
    
  2. Are you using Jira cloud or on-premise jira server? Also mention the version for on-premise installation.
    Jira on-premise v8.20.8
    
  3. What operating system are you using? Also mention version.
    Windows 10
    
  4. What terminal are you using? Also mention version.
    Windows Terminal
    

To Reproduce

Steps to reproduce the behavior:

  1. jira issue view <key> --plain
  2. See error

Expected behavior I expected to read the output in plain mode.

astarrr avatar Jun 15 '22 17:06 astarrr

Hi @astarrr, could you please share more details. What error you get? Does it work without --plain flag?

ankitpokhrel avatar Jun 16 '22 06:06 ankitpokhrel

No errors, the same command with or without --plain returns the same output

astarrr avatar Jun 16 '22 06:06 astarrr

hmm...I don't have windows machine to check and its really hard to say what's happening without checking. I will try to reproduce this if I get access to a windows machine. Any help is appreciated in the meantime.

ankitpokhrel avatar Jun 19 '22 06:06 ankitpokhrel

I can similarly reproduce this issue on OSX (12.6) (Version="1.1.0", GitCommit="3b93e147eac468ad985bdece27469153b4bb2814", CommitDate="2022-08-14T08:10:40+00:00", GoVersion="go1.18.3", Compiler="gc", Platform="darwin/amd64")

jira issue view --plain

tcoffin avatar Sep 30 '22 15:09 tcoffin

I'm unclear what "plain mode" is supposed to do, but on Linux, the only apparent difference is that --plain outputs directly to the terminal, without using a pager. The format appears the same. I was expecting plain text output that was more parse-able

rcorre avatar Feb 22 '23 17:02 rcorre