Skip to content

Commit

Permalink
pip: initial pip script
Browse files Browse the repository at this point in the history
  • Loading branch information
jeekl committed Apr 15, 2013
1 parent 0666aef commit 0cbe484
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions scripts/pip
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
#!/usr/bin/env perl
use App::Cope;
$App::Cope::line_buffered = 0;

sub process {

# Downloading/unpacking pyrg
line qr{^Downloading/unpacking (.*)} => 'blue bold';

# Downloading pyrg-0.2.6.tar.gz
line qr{Downloading (.*)} => 'yellow';

# Running setup.py egg_info for package pyrg
line qr{Running setup.py egg_info for package (.*)} => 'blue bold';

# Installing collected packages: pyrg
line qr{^Installing collected packages: (.*)} => 'blue bold';

# Running setup.py install for pyrg
line qr{Running setup.py install for (.*)} => 'blue bold';

# Installing pyrg script to /usr/local/bin
line qr{^Running setup.py for package (.*)} => 'blue bold';

# Successfully installed pyrg
line qr{(Successfully installed) (.*)} => 'green', 'blue bold';

# Successfully uninstalled pyrg
line qr{(Successfully uninstalled) (.*)} => 'red', 'blue bold';

# Uninstalling pyrg:
line qr{^Uninstalling (.*):} => 'blue bold';

# Proceed (y/n)? y
line qr{\(([Yy])/([Nn])\)\?} => 'green', 'red';
}
run( \&process, real_path, @ARGV );

0 comments on commit 0cbe484

Please sign in to comment.