Skip to content

Tool to show dependencies on raku modules given by zef

License

Notifications You must be signed in to change notification settings

coke/raku-zef-deps

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

50 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Overview

zef-deps is a script to report on module dependencies for raku.

Given a list of package names on the command line, generate a listing of all dependencies, direct and indirect.

Usage

% zef-deps App::Cal
App::Cal
    Terminal::ANSIColor
    Test::Differences
        Data::Dump
        Text::Diff
            Algorithm::Diff
                Test
            Test
            Text::Tabs

The indent level shows the nesting of dependencies. So in this example, App::Cal depends on Test::Differences, which in turn depends on Data::Dump. Both Algorithm::Diff and Text::Diff depend on Test.

Multiple packages can be specified on the command line.

If a single name of . is specified, zef-deps will instead read the local META6.json and use the depends attribute as the list of packages.

In the default textual output, repeated dependencies anywhere in the hierarchy are replaced with ....

Options

--json generates JSON output for the dependencies.

--png generates a png file showing dependencies using dot. To use this option, you must install the optional module Uxmal. When run with this option, a file is generated in a temp directory and the path to the file is printed as the only non-debug output.

Environment variables

ZEF_DEPS_INDENT

Indenting defaults to 4 spaces but can be overridden by setting this environment variable to the number of desired spaces.

About

Tool to show dependencies on raku modules given by zef

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages