mirror of
https://github.com/kennethreitz/pipenv.git
synced 2026-06-05 22:50:18 +00:00
@@ -191,6 +191,8 @@ Fish is the best shell. You should use it.
|
||||
lock Generates Pipfile.lock.
|
||||
open View a given module in your editor.
|
||||
run Spawns a command installed into the virtualenv.
|
||||
scripts Displays the shortcuts in the (optional) [scripts] section of
|
||||
Pipfile.
|
||||
shell Spawns a shell within the virtualenv.
|
||||
sync Installs all packages specified in Pipfile.lock.
|
||||
uninstall Un-installs a provided package and removes it from Pipfile.
|
||||
|
||||
@@ -428,6 +428,15 @@ For example:
|
||||
$ pipenv run echospam "indeed"
|
||||
I am really a very silly example indeed
|
||||
|
||||
You can then display the names and commands of your shortcuts by running ``pipenv scripts`` in your terminal.
|
||||
|
||||
::
|
||||
|
||||
$ pipenv scripts
|
||||
command script
|
||||
echospam echo I am really a very silly example
|
||||
|
||||
|
||||
☤ Support for Environment Variables
|
||||
-----------------------------------
|
||||
|
||||
|
||||
@@ -0,0 +1,2 @@
|
||||
Add a new command ``pipenv scripts`` to display shortcuts from Pipfile.
|
||||
|
||||
@@ -730,11 +730,11 @@ def scripts(state, args):
|
||||
echo(u"project not found", err=True)
|
||||
exit(1)
|
||||
scripts = project.parsed_pipfile.get('scripts', {})
|
||||
rpt = u"command\tscripts\n"
|
||||
rpt = u"command\tscript\n"
|
||||
for k, v in scripts.items():
|
||||
rpt += u"{0}\t{1}".format(k, v)
|
||||
echo(rpt)
|
||||
return
|
||||
return 0
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
||||
Reference in New Issue
Block a user