-
Notifications
You must be signed in to change notification settings - Fork 26
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 !-variants of request methods and improve yardocs #119
Conversation
@@ -10,6 +10,9 @@ module API | |||
module MetaV1 | |||
# @see https://godoc.org/k8s.io/apimachinery/pkg/apis/meta/v1#TypeMeta | |||
class Resource < Struct | |||
# @!macro [attach] attribute |
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.
@@ -21,7 +21,8 @@ | |||
|
|||
module K8s | |||
# @param server [String] http/s URL | |||
# @param options [Hash] @see Transport.new | |||
# @param options [Hash] | |||
# @param (see Transport#initialize) |
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.
This syntax copies the params from the referenced method to this one. The link didn't work anyway.
@@ -133,7 +133,7 @@ def self.from_kubeconfig_env(kubeconfig = nil) | |||
# | |||
# @param server [String] kubernetes server address | |||
# @param ca [String] server certificate authority data (base64 encoded) | |||
# @param token [String] access token | |||
# @param auth_token [String] access token |
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.
Wrong attribute name, yardoc warns about these when generating, we could add rubocop-like test step for yardoc validity.
module ExceptionlessBangMethod | ||
private | ||
|
||
# @!macro [attach] exceptionless_bang_method |
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.
This documents the dynamically generated bang!
methods, but I couldn't find any way to replicate the param list / return value, so the bang-variants just show (*args, **options) => Object
in the final doc.
Too complicated implementation |
Fixes #109
Also includes a bunch of fixes and improvements to yardocs all over, such as automatic documentation of the struct attributes.