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

Add the base cli #3

Merged
merged 8 commits into from
May 12, 2019
Merged

Add the base cli #3

merged 8 commits into from
May 12, 2019

Conversation

NyanKiyoshi
Copy link
Owner

@NyanKiyoshi NyanKiyoshi commented May 8, 2019

This PR adds a CLI interface to the package. It adds a show command that takes a file.

  • By default it prints to stdout the file content formatted as a table;
  • By passing --html it will output a generated html code to stdout.

Todo:

  • Implement raw visualization;
  • Implement HTML visualization;
    • Add test for rendering;
    • Add test for rendering no data;
    • Add test for rendering with a custom template both:
      • Valid
      • Invalid
  • Add test for missing required key;
  • Update README:
    • Add --help
    • Add the show command
    • Add the html command
      • Add how to customize it.

@codecov-io
Copy link

codecov-io commented May 8, 2019

Codecov Report

Merging #3 into master will not change coverage.
The diff coverage is 100%.

Impacted file tree graph

@@          Coverage Diff          @@
##           master     #3   +/-   ##
=====================================
  Coverage     100%   100%           
=====================================
  Files           1      4    +3     
  Lines          47    130   +83     
  Branches        0     13   +13     
=====================================
+ Hits           47    130   +83
Impacted Files Coverage Δ
pytest_django_queries/tables.py 100% <100%> (ø)
pytest_django_queries/utils.py 100% <100%> (ø)
pytest_django_queries/cli.py 100% <100%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update e96f3e8...6bcdd09. Read the comment docs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants