1#!/usr/bin/env perl 2use strict; 3use warnings; 4use Vimana; 5use Vimana::Command; 6require Vimana::Record; 7require Vimana::Command::Search; 8require Vimana::Command::Rate; 9require Vimana::Command::Install; 10require Vimana::Command::Update; 11require Vimana::Command::Remove; 12require JSON::PP; 13 14use Getopt::Long; 15 16$|++; 17my $cmd = shift @ARGV; 18 19if (!$cmd or $cmd =~ /^-{0,2}[Hh](?:elp)?$/) { 20 Vimana::Command->invoke('help', @ARGV); 21 exit 0; 22} 23 24{ 25 my $show_version; 26 local *ARGV = [$cmd || '']; 27 GetOptions ('v|version' => \$show_version) or exit; 28 29 if ($show_version || ($cmd && $cmd eq 'version')) { 30 printf ( "Vimana - version %f\n", $Vimana::VERSION ); 31 exit 0; 32 } 33} 34 35 36Vimana::Command->invoke($cmd, @ARGV); 37 38=encoding utf8 39 40=head1 NAME 41 42vimana 43 44=head1 USAGE 45 46to update index 47 48 $ vimana update 49 50check rails.vim plugin info 51 52 $ vimana info rails.vim 53 54to search jifty script 55 56 $ vimana search rails 57 58to install rails.vim package: 59 60 $ vimana install rails.vim 61 62 63=head1 AUTHORS 64 65Cornelius E<lt>cornelius.howl@gmail.comE<gt> 66 67=head1 COPYRIGHT 68 69Copyright 2003-2005 by You-An Lin (Cornelius) E<lt>cornelius.howl@gmail.comE<gt>. 70 71This program is free software; you can redistribute it and/or modify it 72under the same terms as Perl itself. 73 74See L<http://www.perl.com/perl/misc/Artistic.html> 75 76=cut 77 78# vim: ts=8 79