Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

references #68, basescript is now a command-line tool which supports … #105

Merged
merged 2 commits into from
Jul 7, 2021

Conversation

prashanthellina
Copy link
Member

…a 'pretty' sub-command that can be used to view json format logs in pretty format

references #68

…a 'pretty' sub-command that can be used to view json format logs in pretty format
@@ -182,3 +193,10 @@ def run(self):
Override this method to define logic for `run` sub-command
"""
pass

def pretty(self):
print("hello")
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this a dummy definition? Then I think we should use pass instead of a print statement

Copy link
Member Author

Choose a reason for hiding this comment

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

Thanks for catching that. I had initially thought of the writing the sub-command implementation in that function but later decided to do inside pretty_print from log module. Removed it now in the latest commit.

@prashanthellina prashanthellina merged commit 6e3b772 into master Jul 7, 2021
@prashanthellina prashanthellina deleted the feature-pretty branch July 7, 2021 20:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants