Add formatting options to the 'show' and 'user ls' commands by vincetiu8 · Pull Request #410 · git-bug/git-bug

added 2 commits

June 21, 2020 13:51
This adds options to specify an output format for the commands in question. Supported formats are currently:
- 'plain': plaintext, stripped of all colors
- 'json': prints output as a json object
This adds an option to the formatting flag on the ls, show and user ls commands that allows the user to specify the format of the output in org-mode. This will be useful for emacs users to read it in the editor.

MichaelMure

@vincetiu8

@vincetiu8

This fixes some bugs experienced when using the new formatting options:
- org-mode indents not working properly
- print statements missing contents

MichaelMure

@MichaelMure

@MichaelMure

…formats

This assume that the convertion from time.Time <--> Unix timestamp is lossless which seems to be.

@MichaelMure

karlicoss added a commit to karlicoss/scripts that referenced this pull request

Oct 30, 2020

@karlicoss