mirror of
https://github.com/mfarr/obsidian-archive.git
synced 2026-07-22 05:41:33 +00:00
22 lines
663 B
TypeScript
22 lines
663 B
TypeScript
import { Workspace } from "obsidian";
|
|
|
|
import { AutoArchiveService } from "./AutoArchiveService";
|
|
import type SimpleArchiver from "../main";
|
|
|
|
/**
|
|
* Bootstraps the auto-archive context menu UI.
|
|
*
|
|
* Registers folder context menu items that allow users to add, edit,
|
|
* and manage auto-archive rules at the folder level.
|
|
*
|
|
* @param service The AutoArchiveService instance
|
|
* @param workspace The Obsidian Workspace instance
|
|
* @param plugin The SimpleArchiver plugin instance
|
|
*/
|
|
export function setupAutoArchiveContextMenu(
|
|
service: AutoArchiveService,
|
|
workspace: Workspace,
|
|
plugin: SimpleArchiver,
|
|
): void {
|
|
service.setupContextMenu(workspace, plugin);
|
|
}
|