close
Skip to content
This repository was archived by the owner on May 16, 2025. It is now read-only.

create csv.py in renderers#480

Open
DvAu26 wants to merge 1 commit intovolatilityfoundation:masterfrom
DvAu26:patch-1
Open

create csv.py in renderers#480
DvAu26 wants to merge 1 commit intovolatilityfoundation:masterfrom
DvAu26:patch-1

Conversation

@DvAu26
Copy link
Copy Markdown

@DvAu26 DvAu26 commented Nov 27, 2017

That 's to have an output format like csv.

I discover GitHub...

That 's to have an output format like csv.
Comment thread csv.py
return "<FormatCellRenderer (" + repr(self._format_spec) + ")>"


class TextRenderer(Renderer):
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would suggest is importing the TextRenderer() class instead of redefining it here.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I had made a pull request for commands.py too.
I just reuse the greptext rendere to make my csv rendere.

I think that it's possible to upgrade the greptext rendere too with : join "|" and not a +=

Comment thread csv.py

__author__ = 'david'

class CellRenderer(object):
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for your pull request. One thing that I would ask, is that you import CellRenderer() and FormatCellRenderer() instead of redefining them

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have took the same def as render_greptext. So it's the same way for csv and greptext.

@gleeda gleeda added the renderer label Dec 6, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants