Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Graphviz #25

Closed
wants to merge 2 commits into from
Closed

Graphviz #25

wants to merge 2 commits into from

Conversation

darkleaf
Copy link
Owner

No description provided.

@@ -826,3 +826,68 @@
(p/demolish factory obj)
(after-demolish! {:key key :object obj})
nil))))))

(defn inspect []
(fn [registry]
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add space

(t/deftest ok
(with-open [info (di/start `c (di/inspect))]
(t/is (= [{:key `c :deps [`a `b]}
{:key `a :deps nil}
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should we remove a key with nil value?

@@ -826,3 +826,68 @@
(p/demolish factory obj)
(after-demolish! {:key key :object obj})
nil))))))

(defn inspect []
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I should move it into a separate PR.

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

#27

:ok)

(t/deftest ok
(with-open [info (di/start `c (di/inspect))]
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It should not be a middleware

(di/inspect `c registry-middlewares)

(dependencies [_]
(p/dependencies factory))
(build [_ deps]
(into [{:key key :deps (keys deps)}]
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

{:key key 
 :deps (keys deps)
 :dep-types (p/dependencies this)}

@darkleaf
Copy link
Owner Author

#30

@darkleaf darkleaf closed this Oct 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant