Skip to content

Instantly share code, notes, and snippets.

@donaldh
Last active December 1, 2015 21:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save donaldh/478814e68ab9d674eab9 to your computer and use it in GitHub Desktop.
Save donaldh/478814e68ab9d674eab9 to your computer and use it in GitHub Desktop.
USAGE - with support for documenting args
#!/usr/bin/env perl6
#| Install the specified modules
multi MAIN ('install',
*@modules,
Bool :$notests, #= Do not run the module tests
Bool :$nodeps, #= Install without module dependencies
Str :$prefix #= Override the installation prefix
) {
}
#| Install dependencies, but don't build the modules themselves
multi MAIN ('installdeps', *@modules, Bool :$notests, Str :$prefix) {
}
#| List all available modules
multi MAIN ('list',
Bool :$installed, #= Only list installed modules
Bool :$verbose, #= Provide more module detais
Str :$prefix) {
}
#| Update the module database
multi MAIN ('update', Str :$prefix) {
}
#| Display information about specified modules
multi MAIN ('info', *@modules, Str :$prefix) {
}
#| Search the name/description
multi MAIN ('search', $pattern = '', Str :$prefix) {
}
#| Autogenerate META.info
multi MAIN ('gen-meta',
Bool :$notests,
Str :$name, #= Name for module for META.info
Str :$auth, #= Author for META.info
Str :$ver, #= Version info for META.info
Str :$desc, #= Module description for META.info
Str :$prefix) {
}
#| Test and install all known distributions
multi MAIN ('smoke',
:$exclude = 'panda', #= Modules to exclude from smoke - defaults to panda
Str :$prefix) {
}
#| Download and unpack the distribution and then open the directory with your shell.
multi MAIN ('look', *@modules, Str :$prefix) {
}
multi MAIN (Bool :$notests, Bool :$nodeps, Str :$prefix, *@modules where * > 0) {
}
Usage:
./panda-help [--notests] [--nodeps] [--prefix=<Str>] install [<modules> ...] -- Install the specified modules
./panda-help [--notests] [--prefix=<Str>] installdeps [<modules> ...] -- Install dependencies, but don't build the modules themselves
./panda-help [--installed] [--verbose] [--prefix=<Str>] list -- List all available modules
./panda-help [--prefix=<Str>] update -- Update the module database
./panda-help [--prefix=<Str>] info [<modules> ...] -- Display information about specified modules
./panda-help [--prefix=<Str>] search [<pattern>] -- Search the name/description
./panda-help [--notests] [--name=<Str>] [--auth=<Str>] [--ver=<Str>] [--desc=<Str>] [--prefix=<Str>] gen-meta -- Autogenerate META.info
./panda-help [--exclude=<Any>] [--prefix=<Str>] smoke -- Test and install all known distributions
./panda-help [--prefix=<Str>] look [<modules> ...] -- Download and unpack the distribution and then open the directory with your shell.
./panda-help [--notests] [--nodeps] [--prefix=<Str>] [<modules> ...]
--auth=<Str> Author for META.info
--desc=<Str> Module description for META.info
--exclude=<Any> Modules to exclude from smoke - defaults to panda
--installed Only list installed modules
--name=<Str> Name for module for META.info
--nodeps Install without module dependencies
--notests Do not run the module tests
--prefix=<Str> Override the installation prefix
--ver=<Str> Version info for META.info
--verbose Provide more module detais
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment