<div dir="ltr">Hey Ivan,<div><br></div><div>Sorry for the late reply.</div><div><br></div><div>We have a template you should use for your README.asciidoc. It&#39;s located here: <a href="https://raw.github.com/forge/core/2.0/addons/impl/src/main/resources/org/jboss/forge/addon/addons/README.asciidoc">https://raw.github.com/forge/core/2.0/addons/impl/src/main/resources/org/jboss/forge/addon/addons/README.asciidoc</a></div>
<div><br></div><div>For the commands, you should add Man pages (we have not yet documented this): <a href="https://github.com/forge/core/blob/2.0/shell/impl/src/main/resources/org/jboss/forge/addon/shell/commands/ExitCommand.txt">https://github.com/forge/core/blob/2.0/shell/impl/src/main/resources/org/jboss/forge/addon/shell/commands/ExitCommand.txt</a></div>
<div><br></div><div>You&#39;ll just need to place the .txt or .ad or .asciidoc file in the resources source directory with the same package and name as the command it documents. E.g: The above text file will display when you type &quot;man exit&quot;, for this: <a href="https://github.com/forge/core/blob/2.0/shell/impl/src/main/java/org/jboss/forge/addon/shell/commands/ExitCommand.java">https://github.com/forge/core/blob/2.0/shell/impl/src/main/java/org/jboss/forge/addon/shell/commands/ExitCommand.java</a></div>
<div><br></div><div>Also, to get the current resource, you need to get the initial selection:</div><div><br></div><div><a href="https://github.com/forge/core/blob/2.0/projects/api/src/main/java/org/jboss/forge/addon/projects/ui/AbstractProjectCommand.java#L58">https://github.com/forge/core/blob/2.0/projects/api/src/main/java/org/jboss/forge/addon/projects/ui/AbstractProjectCommand.java#L58</a><br>
</div><div><br></div><div>Does this answer your questions?</div><div><br></div><div>Cheers!</div><div>~Lincoln</div><div class="gmail_extra"><div><br></div>-- <br>Lincoln Baxter, III<br><a href="http://ocpsoft.org" target="_blank">http://ocpsoft.org</a><br>
&quot;Simpler is better.&quot;
</div></div>