- [:for sub [:!get -sortedby name @command] {
-
- [$sub name]
-
- }]
-
- Index: library/lib/doc-assets/command.html.tmpl =================================================================== diff -u -r9e98d057e87eb5d9bf8cd3a25dc679ed02cd6399 -rb067e586fadae95916358904fd8392d073c7c87c --- library/lib/doc-assets/command.html.tmpl (.../command.html.tmpl) (revision 9e98d057e87eb5d9bf8cd3a25dc679ed02cd6399) +++ library/lib/doc-assets/command.html.tmpl (.../command.html.tmpl) (revision b067e586fadae95916358904fd8392d073c7c87c) @@ -1,107 +1,117 @@
- [:for sub [:!get -sortedby name @command] {
-
- [$sub name]
-
- }]
-
- [:? {[$sub eval {info exists :@return}] && [[$sub @return] spec] ne ""} {<[[$sub @return] spec]>} ]
- ${:name}
- [$sub name]
- [$sub pinfo get -default "" bundle parametersyntax]
-
- [$param name]
- [:? {[$param eval {info exists :spec}] && [$param spec] ne ""} {<[$param spec]>}]
+[join [:pinfo get -default "" validation]
]
+
+ [:? {[info exists :@return] && [${:@return} spec] ne ""} {<[${:@return} spec]>} ]
+ ${:name}
+ [:pinfo get -default "" bundle parametersyntax]
+
+ [:?var :@command {
+
+
+
+ Subcommands
+
+
+
+ [:for sub [:!get -sortedby name @command] {
+
+ [$sub name]
+
+ }]
+
+
+
+
+
+ [:for sub [:!get -sortedby name @command] {
+
+ [$sub print_name]
+
+
+ [:? {[$sub eval {info exists :@return}] && [[$sub @return] spec] ne ""} {<[[$sub @return] spec]>} ]
+ ${:name} [$sub name]
+ [$sub pinfo get -default "" bundle parametersyntax]
- [$param as_text]
-
- }]
-
+
+ [$sub as_text]
+ [:?objvar $sub @parameter {
+
+ - Parameters:
+ [:for param [$sub !get @parameter] {
+ -
+
[$param name]
+ [:? {[$param eval {info exists :spec}] && [$param spec] ne ""} {<[$param spec]>}]
+
+ [$param as_text]
+ [join [$param pinfo get -default "" validation]
]
+
+ }]
+
+ }]
+ [:?objvar $sub @return {
+ [:!let subreturn [$sub @return]]
+
+ - Returns:
+
+
+ - [$subreturn as_text][join [$subreturn pinfo get -default "" validation]
]
+
+ }]
+
+
+
+
}]
- [:?objvar $sub @return {
-
- - Returns:
-
-
- - [[$sub @return] as_text]
-
- }]
-
-
-
+
- }]
+
[$param name]
+ [:? {[$param eval {info exists :spec}] && [$param spec] ne ""} {<[$param spec]>}]
+
+ [$param statusmark]
+ [$param as_text]
+ [join [$param pinfo get -default "" validation]
+
[$param name]
- <[:? {[$param eval {info exists :spec}]} {[$param spec]}]>
-
- [$param as_text]
-
-