mirror of
https://gitlab.com/bignutty/labscore.git
synced 2025-06-08 14:13:02 -04:00
[cmd] art
This commit is contained in:
parent
eaff3db775
commit
7aff8e079f
4 changed files with 117 additions and 2 deletions
|
@ -28,11 +28,14 @@ function createCommandPage(context, prefix, command){
|
|||
value: command.aliases.join(', '),
|
||||
inline: true
|
||||
})
|
||||
|
||||
// TODO: maybe try building a little parser that highlights things via ansi
|
||||
if(command.metadata.usage) page.fields.push({
|
||||
name: `${icon("util")} Usage`,
|
||||
value: codeblock("ansi", [prefix + command.metadata.usage]),
|
||||
value: codeblock("py", [prefix + command.metadata.usage]),
|
||||
inline: true
|
||||
})
|
||||
|
||||
if(command.metadata.examples){
|
||||
let ex = []
|
||||
for(const e of command.metadata.examples) ex.push(prefix + e)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue