-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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 pipenv scripts
command to list scripts in Pipfile
#4445
Conversation
Add a `scripts` command and a test for it.
pipenv scripts
command to list scripts in Pipfilepipenv script
command to list scripts in Pipfile
- Use string format compatible with python 2.7 - Use `click.echo`, not `print` - The command is `pipenv script` not `pipenv scripts` - The stanza label in Pipfile is `[scripts]`, not `[script]` - The default when getting from the pipfile should be dict, not a list
A news fragment is needed to notice what is new. You can place it under the |
Maybe we should name this |
Change the `script` command to `scripts`
pipenv script
command to list scripts in Pipfilepipenv scripts
command to list scripts in Pipfile
add inspection for 'which python'
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One more step before merge: add a news entry file under news/
directory. @GlenRSmith
pipenv/cli/command.py
Outdated
for k, v in scripts.items(): | ||
rpt += u"{0}\t{1}".format(k, v) | ||
echo(rpt) | ||
return |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This return has no function.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed.
@frostming Added. Sorry for the omission. |
Enhancement discussed in #3686