Typedef
Static Public Summary | ||
public | ||
public |
Command outline used to generate Commander commands and documentation. |
|
public |
Project config. |
|
public |
Example outline used to generate --help output. |
|
public |
|
|
public |
Object with #log method used to output progress. |
|
public |
Option outline used to generate Commander commands. |
|
public |
Strings used to build messages. |
Static Public
public Command: Object source
Command outline used to generate Commander commands and documentation.
Example:
{
command: "release",
description: "Bundles source for release.",
options: [{
flag: "-v, --verbose",
description: "Output verbose error messages."
}],
examples: [{
command: "-o path/to/target",
description: "Bundled at path/to/target."
}]
}
public Config: Object source
Project config.
Properties:
Name | Type | Attribute | Description |
links | {files: string[], directories: []} | Paths used by Linker. |
|
mybb_root | string | Absolute path to MyBB root. |
|
vendor | string | Vendor name, e.g. |
|
code | string | Plugin codename, e.g. |
|
version | string | Semantic version. Used by Releaser. |
Example:
{
links: {
files: ["to/a/file", "to/another/file"],
directories: ["to/a/dir", "to/another/dir"]
},
mybb_root: "C:/path/to/mybb/root",
vendor: "shinka",
code: "cli",
version: "0.0.1-a"
}
public Example: Object source
Example outline used to generate --help output.
Example:
{
command: "-o path/to/target",
description: "Bundled at path/to/target."
}
public LogObject: Object source
Object with #log method used to output progress.
Properties:
Name | Type | Attribute | Description |
log | function |
Example:
class Logger {
log(msg) {
console.log(msg);
}
}
{
log: (msg) => console.log(msg)
}
console