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

Adding more columns to the display #4 #9

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

dionysio
Copy link

@dionysio dionysio commented Dec 3, 2021

I've added a new command line argument called columns which allows the user to retrieve more than just license information. An example call

deplic /home/user/myproject --format json --columns Name Version Meta "Project Url"

which would output:

[
    {
        "Name": "pdf2image",
        "Version": "1.16.0",
        "Meta": "MIT",
        "Project Url": "https://pypi.org/project/pdf2image/"
    },
    {
        "Name": "blowfish",
        "Version": "0.6.1",
        "Meta": "GPLv3",
        "Project Url": "https://pypi.org/project/blowfish/"
    }
]

I've checked and it works in json/csv/tabulated formats. Also by default, the output is still the same - only license information shows

@dionysio
Copy link
Author

dionysio commented Dec 3, 2021

hey @abduhbm sorry I've never seen these pre-commit hooks used, can you explain how can this https://github.com/abduhbm/dep-license/runs/4406447331?check_suite_focus=true be fixed?

@abduhbm
Copy link
Owner

abduhbm commented Dec 5, 2021

Hey @dionysio ... Thanks for the PR
This runs a pre commit hook to check the code format using black formatter
You can install it locally and run it to reformat the code (https://pre-commit.com)

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.

2 participants