UNPKG

ovm

Version:

OVM is a CLI application for managing Obsidian vaults.

57 lines (56 loc) 2.18 kB
import { Dirent } from 'fs'; import { Config } from '../services/config/index.types'; import { OutputFormat } from '../types/commands'; export declare const getTestConfigFilePath: (vaultPath: string) => string; export declare const destroyConfigMockFile: (path: string) => void; export declare const setupVault: (overrideConfig?: Config) => Promise<{ vault: { name: string; path: string; }; config: { path: string; plugins: { id: string; name?: string | undefined; description?: string | undefined; version?: import("obsidian-utils").GitHubPluginVersion | undefined; repo?: string | undefined; author?: string | undefined; }[]; sync?: { files: { type: "all" | "custom" | "plugin" | "core"; source: string; target: string; mergeStrategy: "replace" | "merge" | "smart"; onlyIfInstalled: boolean; include?: string[] | undefined; exclude?: string[] | undefined; pluginId?: string | undefined; vaults?: string[] | undefined; backup?: boolean | undefined; overwrite?: boolean | undefined; }[]; baseDir?: string | undefined; } | undefined; $schema?: string | undefined; }; }>; export declare const getTestCommonFlags: (configFilePath: string) => { debug: boolean; timestamp: boolean; config: string; }; export declare const getTestCommonWithVaultPathFlags: (configFilePath: string, vaultPath: string) => { debug: boolean; timestamp: boolean; config: string; path: string; output: OutputFormat; }; export declare const destroyVault: (vaultPath: string) => void; export declare const createMockDirent: (name: string, isDirectory: boolean) => Dirent; export declare const replaceVersionInfo: (input: string) => string; export declare const normalizeHelpOutput: (input: string) => string; export declare const createTestPlugin: (vaultPath: string, pluginId: string, pluginName?: string) => string;