Skip to content
/ spm Public

Helpful commands to compliment Swift Package Manager

License

Notifications You must be signed in to change notification settings

Sherlouk/spm

Repository files navigation

SPM

CI

An executable with a couple potentially helpful swift package manager commands.

Commands

Graph

Creates a graph visualising the package and all of it's dependencies.

Note: This command requires that you have already installed 'nomnoml' locally - you can do this by running npm install -g nomnoml.

$ spm graph path/to/package [--outputName <generated.svg>]

New (NOT IMPLEMENTED)

Creates a new Swift package using an opinionated structure

$ spm new MyPackage

TODO

  • Create new command
  • Support GraphViz export type for graph command (--outputType <graphviz || nomnoml>)
  • Add --outputPath option to graph command to switch from current directory
  • Add --detailed flag which adds enhanced information to every node in graph. Including tools version, and platform target(s).
  • Extract JUnit from CI test suite and upload using https://github.com/EnricoMi/publish-unit-test-result-action