diff options
author | Shin'ya Ueoka <ueokande@i-beam.org> | 2020-11-29 09:31:45 +0900 |
---|---|---|
committer | Shin'ya Ueoka <ueokande@i-beam.org> | 2020-12-09 23:09:34 +0900 |
commit | 36c28a538955c0cd9d94c210372337d7a5c2a01b (patch) | |
tree | be12ff6abed9443cfedcb3ab1564ee8562e33858 /src/content/operators/impls/EnableSetMarkOperator.ts | |
parent | 809bdb11f3d213254c098411755631b1264c52f0 (diff) |
extract independent classes
Diffstat (limited to 'src/content/operators/impls/EnableSetMarkOperator.ts')
-rw-r--r-- | src/content/operators/impls/EnableSetMarkOperator.ts | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/content/operators/impls/EnableSetMarkOperator.ts b/src/content/operators/impls/EnableSetMarkOperator.ts new file mode 100644 index 0000000..3d0daf4 --- /dev/null +++ b/src/content/operators/impls/EnableSetMarkOperator.ts @@ -0,0 +1,10 @@ +import Operator from "../Operator"; +import MarkKeyRepository from "../../repositories/MarkKeyRepository"; + +export default class EnableSetMarkOperator implements Operator { + constructor(private readonly repository: MarkKeyRepository) {} + + async run(): Promise<void> { + this.repository.enableSetMode(); + } +} |