Update docs 2
This commit is contained in:
parent
3ef1d44cdb
commit
3b3ed3aef7
4
index.js
4
index.js
@ -350,10 +350,10 @@ if (!args || args.help) {
|
||||
};
|
||||
}
|
||||
if (fields.length > 0) {
|
||||
doc += "#|Field name|Field type\n-|-|-\n";
|
||||
doc += "| N | Field name | Field type |\n| - | - | - |\n";
|
||||
for (let i = 1; i <= fields.length; i++) {
|
||||
if (fields[i]) {
|
||||
doc += `${i}|${fields[i].name}|${(types.test(fields[i].type) ? fields[i].type : '['+fields[i].type+'](#'+fields[i].type+')')}\n`;
|
||||
doc += `| ${i} | ${fields[i].name} | ${(types.test(fields[i].type) ? fields[i].type : '['+fields[i].type+'](#'+fields[i].type+')')} |\n`;
|
||||
}
|
||||
}
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user