mirror of
https://github.com/unarray/file-tree-generator.git
synced 2026-07-22 08:40:29 +00:00
Register new GenerateTree command
This commit is contained in:
parent
34f5bfbe2f
commit
5877ff53ee
1 changed files with 13 additions and 0 deletions
|
|
@ -1,6 +1,19 @@
|
|||
import { GenerateTree } from "#/commands/GenerateTree";
|
||||
import type { Command } from "obsidian";
|
||||
import { Plugin } from "obsidian";
|
||||
|
||||
export default class FileTreeGenerator extends Plugin {
|
||||
|
||||
onload(): void {
|
||||
this.addCommands(
|
||||
new GenerateTree()
|
||||
);
|
||||
}
|
||||
|
||||
public addCommands = (...commands: Command[]): void => {
|
||||
for (const command of commands) {
|
||||
this.addCommand(command);
|
||||
}
|
||||
};
|
||||
|
||||
}
|
||||
Loading…
Reference in a new issue