github.com/grantbow/fit@v0.7.1-0.20220916164603-1f7c88ac81e6/fit/close-default-deletes/Description (about)

     1  #### What did you do?
     2  bug close 1
     3  
     4  
     5  #### What did you expect to see?
     6  create file Status with closed or
     7  create file tag_status_closed
     8  
     9  
    10  #### What did you see instead?
    11  bug close command deletes issues.
    12  
    13  
    14  #### What version?
    15  0.6
    16  
    17  
    18  #### Resolution
    19  I added a config value CloseStatusTag.
    20  Default is false, current behavior of removing the issue.
    21  Configured value of true will instead set status to closed.
    22  
    23  in the code
    24       bug.setField wasn't exposed yet.  so I changed it to
    25       bug.SetField and call it from bugapp/Close.go
    26  
    27       SetField now applies NewFieldLowerCase to keys as well as values
    28  
    29  there is no ui for a command to set a "field" value yet.
    30  Tags were originally just present or not.
    31  
    32  Tags are now keys and values which are read
    33  but not yet written by the bug command.
    34