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

Add --hide-private options. #67

Closed
smeghead opened this issue Jun 5, 2024 · 5 comments
Closed

Add --hide-private options. #67

smeghead opened this issue Jun 5, 2024 · 5 comments

Comments

@smeghead
Copy link
Owner

smeghead commented Jun 5, 2024

#65 でプライベートメソッドを非表示にしたいという要望を頂きました。

クラスのプライベートメソッドとプライベートフィールドを非表示にする --hide-private というオプションの追加を考えています。
プライベートメソッドは非表示にして、プライベートフィールドは表示するという別々の制御をする必要があるのであれば、それぞれのオプションを追加する必要があります。

smeghead added a commit that referenced this issue Jul 6, 2024
add `--hide-private`, `--hide-private-properties`, `--hide-private-methods` options.
smeghead added a commit that referenced this issue Jul 6, 2024
@smeghead smeghead closed this as completed Jul 6, 2024
@smeghead
Copy link
Owner Author

smeghead commented Jul 7, 2024

@koriym
v1.3.1 で、--hide-private オプションを実装しました。
--hide-private-methods を指定することで、private(protectedを含む)メソッドを出力しないよう制御できるようになりました。
dockerhubのイメージもv1.3.1に更新済ですので、Github Actionsでも利用可能と思います。

@koriym
Copy link
Contributor

koriym commented Jul 8, 2024

@smeghead

Github Actionsでどのように指定するのでしょうか?

@smeghead
Copy link
Owner Author

smeghead commented Jul 8, 2024

@koriym
https://github.com/smeghead/php-class-diagram-gh-action?tab=readme-ov-file#options
GitHub Actions php-class-diagram-gh-action で、options という入力パラメータがありますので、php-class-diagramに渡すオプションを指定可能です。

以下が使用例です。

options: --hide-private-methods

@koriym
Copy link
Contributor

koriym commented Jul 8, 2024

@smeghead ありがとうございます!確認しました。素晴らしいですね!🎉

@smeghead
Copy link
Owner Author

smeghead commented Jul 8, 2024

@koriym 確認いただきありがとうございます、良かったです🤣

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

No branches or pull requests

2 participants