aboutsummaryrefslogtreecommitdiff
path: root/src/shared
diff options
context:
space:
mode:
authorShin'ya Ueoka <ueokande@i-beam.org>2020-08-11 21:37:08 +0900
committerShin'ya Ueoka <ueokande@i-beam.org>2020-08-11 21:40:10 +0900
commitf497109ecc801660dc23bbad8445b120cd75561e (patch)
tree294242675d42468271336ca0f8d702838b73345f /src/shared
parent1f10eac90011e6c3c1ad20ce91b358911dc74dcb (diff)
Enable @typescript-eslint/no-namespace
Diffstat (limited to 'src/shared')
-rw-r--r--src/shared/Command.ts29
1 files changed, 0 insertions, 29 deletions
diff --git a/src/shared/Command.ts b/src/shared/Command.ts
index 05b8b83..70347bf 100644
--- a/src/shared/Command.ts
+++ b/src/shared/Command.ts
@@ -13,32 +13,3 @@ export enum Command {
Set = "set",
Help = "help",
}
-
-export namespace Command {
- export function members(): Command[] {
- return [
- Command.Open,
- Command.TabOpen,
- Command.WindowOpen,
- Command.Buffer,
- Command.BufferDelete,
- Command.BufferDeleteForce,
- Command.BuffersDelete,
- Command.BuffersDeleteForce,
- Command.AddBookmark,
- Command.Quit,
- Command.QuitAll,
- Command.Set,
- Command.Help,
- ];
- }
-
- export function valueOf(value: string): Command {
- const map = new Map(members().map((cmd) => [cmd.toString(), cmd]));
- const cmd = map.get(value);
- if (!cmd) {
- throw new Error(`unknown command '${value}`);
- }
- return cmd;
- }
-}