Skip to content

Instantly share code, notes, and snippets.

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 itcharlie/6ec4982d09346891c5f4c0c6d90ea19b to your computer and use it in GitHub Desktop.
Save itcharlie/6ec4982d09346891c5f4c0c6d90ea19b to your computer and use it in GitHub Desktop.
Zef to the rescue!
Windows PowerShell
Copyright (C) 2015 Microsoft Corporation. All rights reserved.
C:\Users\cgonzalez\Documents\GitHub\zef [master]> perl6 -I.\lib .\bin\zef install .
===> Testing: zef:auth('github:ugexe')
===> Testing [OK] for zef:auth('github:ugexe')
===> Installing: zef:auth('github:ugexe')
1 bin/ script installed to:
C:\rakudo\share\perl6\site\bin
C:\Users\cgonzalez\Documents\GitHub\zef [master]> zef --help
Zef - Perl6 Module Management
USAGE
zef [flags|options] command [args]
COMMANDS
install Install specific dependencies by name or path
uninstall Uninstall specified distributions
test Run tests on a given module's path
fetch Fetch and extract module's source
build Run the Build.pm in a given module's path
look `fetch` followed by shelling into the module's path
update Update package indexes for content storages
search Show a list of possible distribution candidates for the given terms
info Show detailed distribution information
list List known available distributions, or installed distributions with `--installed`
rdepends List all distributions directly depending on a given identity
smoke Run smoke testing on available modules
nuke Delete directory/prefix containing matching configuration path or CURLI name
OPTIONS
--install-to=[name] Short name or spec of CompUnit::Repository to install to
VERBOSITY LEVEL (from least to most verbose)
--error, --warn, --info (default), --verbose, --debug
FLAGS
--depsonly Install only the dependency chains of the requested distributions
--force Continue each phase regardless of failures
--dry Run all phases except the actual installations
--/tests Skip the testing phase
--/depends Do not fetch runtime dependencies
--/test-depends Do not fetch test dependencies
--/build-depends Do not fetch build dependencies
CONFIGURATION C:\rakudo\share\perl6\site\resources\0A39C7C2BAF4EDB8E803DFBC297752044138C522.json
Enable or disable plugins that match the configuration that has field `short-name` that matches <short-name>
--<short-name> # `--cpan` Enable plugin with short-name `cpan`
--/<short-name> # `--/cpan` Disable plugin with short-name `cpan`
C:\Users\cgonzalez\Documents\GitHub\zef [master]>
C:\Users\cgonzalez\Documents\GitHub\zef [master]>
C:\Users\cgonzalez\Documents\GitHub\zef [master]> zef install HTTP::UserAgent
===> Searching for: HTTP::UserAgent
===> Searching for missing dependencies: DateTime::Parse, Encode, IO::Capture::Simple
===> Fetching: HTTP::UserAgent
===> Fetching: IO::Capture::Simple
===> Fetching: DateTime::Parse
===> Fetching: Encode
===> Testing: DateTime::Parse:ver('0.0.1')
===> Testing [OK] for DateTime::Parse:ver('0.0.1')
===> Testing: Encode:ver('0.0.2'):auth('github:sergot')
===> Testing [OK] for Encode:ver('0.0.2'):auth('github:sergot')
===> Testing: IO::Capture::Simple
===> Testing [OK] for IO::Capture::Simple
===> Testing: HTTP::UserAgent:ver('1.1.19'):auth('github:sergot')
# NETWORK_TESTING was not set
===> Testing [OK] for HTTP::UserAgent:ver('1.1.19'):auth('github:sergot')
===> Installing: DateTime::Parse:ver('0.0.1')
===> Installing: Encode:ver('0.0.2'):auth('github:sergot')
===> Installing: IO::Capture::Simple
===> Installing: HTTP::UserAgent:ver('1.1.19'):auth('github:sergot')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment