Jira (PDOC-295) Add support for @enum tag

0 Aufrufe
Direkt zur ersten ungelesenen Nachricht

Sean Millichamp (JIRA)

ungelesen,
20.10.2019, 10:07:0220.10.19
an puppe...@googlegroups.com
Sean Millichamp created an issue
 
Puppet Strings / New Feature PDOC-295
Add support for @enum tag
Issue Type: New Feature New Feature
Assignee: Unassigned
Created: 2019/10/20 7:06 AM
Priority: Normal Normal
Reporter: Sean Millichamp

Puppet Strings currently supports, via YARD, the ability to add extended documentation to a parameter which expects a hash to document the various keys expected using the @option tag. This is quite useful.

Parameters that are of the Puppet Enum type would also benefit from this type of extended option documentation. However, the @option tag is not suitable as it expects a data type to be provided, which makes no sense in the context of an Enum. You can put an arbitrary value as the datatype, but it results in a poor user experience for both the person documenting and the person reading the documentation.

Instead I propose adding a new tag, @enum, that behaves similarly to @option but does not expect a data type to be passed and renders the results accordingly (but otherwise similarly to @option).

 

Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v7.7.1#77002-sha1:e75ca93)
Atlassian logo

Sean Millichamp (JIRA)

ungelesen,
20.10.2019, 10:09:0320.10.19
an puppe...@googlegroups.com
Sean Millichamp commented on New Feature PDOC-295
 
Re: Add support for @enum tag

A PR which I believe implements this correctly is up here for consideration: https://github.com/puppetlabs/puppet-strings/pull/215

Thanks!

Allen antworten
Antwort an Autor
Weiterleiten
0 neue Nachrichten