Created
February 18, 2023 19:00
-
-
Save svetlyak40wt/a8ed639bf8fe07caed1531611bcf932d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defun print-dependency-graph (system-name &key (level 0)) | |
(loop repeat level | |
do (format t " ")) | |
(format t "~A~%" system-name) | |
(typecase system-name | |
((or string symbol) | |
(let ((system (asdf/system:find-system system-name))) | |
(loop for dep in (asdf/system:system-depends-on system) | |
do (print-dependency-graph dep :level (1+ level))))))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment