feat: add default command-not-found handler

This commit is contained in:
ahp
2026-08-25 21:08:12 +03:30
parent 198a198c7f
commit a47325cc1a
+18
View File
@@ -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();