feat: add default command-not-found handler
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
const createDefault = (): string[] => {
|
||||
const defaultMsgArr = [
|
||||
"<br>",
|
||||
"COMMAND NOT FOUND",
|
||||
"Type <span class='command'>'help'</span> to get started.",
|
||||
"<br>",
|
||||
];
|
||||
|
||||
const defaultMsg: string[] = [];
|
||||
|
||||
defaultMsgArr.forEach((ele) => {
|
||||
defaultMsg.push(ele);
|
||||
});
|
||||
|
||||
return defaultMsg;
|
||||
};
|
||||
|
||||
export const DEFAULT = createDefault();
|
||||
Reference in New Issue
Block a user