Skip to content

CLI tool to output Mermaid of module dependencies for multi-modularized projects in Swift Package Manager

License

Notifications You must be signed in to change notification settings

Ryu0118/swift-dependencies-graph

Repository files navigation

swift-dependencies-graph

CLI tool to output mermaid diagrams of module dependencies for multi-modularized projects in Swift Package Manager.

Installation

Mint

Homebrew

$ brew install Ryu0118/dgraph/dgraph
update
$ brew update
$ brew upgrade Ryu0118/dgraph/dgraph

Usage

USAGE: dgraph <project-path> [--add-to-readme] [--include-product]

ARGUMENTS:
  <project-path>          Project root directory

OPTIONS:
  --add-to-readme         Add Mermaid diagram to README
  --include-product       Include .product(name:package:)
  -h, --help              Show help information.

Example

graph TD;
    App-->HogeFeature;
    App-->FugaFeature;
    App-->LoginFeature;
    LoginFeature-->CoreModule;
    HogeFeature-->CoreModule;
    FugaFeature-->CoreModule;
Loading

Package Dependencies

graph TD;
    DependenciesGraph-->DependenciesGraphCore;
    DependenciesGraphCoreTests-->DependenciesGraphCore;
Loading

About

CLI tool to output Mermaid of module dependencies for multi-modularized projects in Swift Package Manager

Resources

License

Stars

Watchers

Forks

Packages

No packages published