-
Notifications
You must be signed in to change notification settings - Fork 1
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
feat: hide resources #254
feat: hide resources #254
Conversation
|
||
build: | ||
go build -o ldcli | ||
|
||
generate: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can run make generate
if that's easier.
@@ -149,6 +133,42 @@ func GetTemplateData(fileName string) (TemplateData, error) { | |||
return TemplateData{Resources: resources}, nil | |||
} | |||
|
|||
func NewResourceData(tag openapi3.Tag) ResourceData { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Made some constructor functions to encapsulate the rules for creating a resource data struct type. This is simpler to test than setting up JSON and calling GetTemplateData
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ty!!
Refactors the resource code a bit and then filters out "other" and "oauth2 clients" endpoints.
Requirements
Related issues
Provide links to any issues in this repository or elsewhere relating to this pull request.
Describe the solution you've provided
Provide a clear and concise description of what you expect to happen.
Describe alternatives you've considered
Provide a clear and concise description of any alternative solutions or features you've considered.
Additional context
Add any other context about the pull request here.