UNPKG

ovm

Version:

OVM is a CLI application for managing Obsidian vaults.

31 lines 1.61 kB
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.PLUGIN_CONFIG_FILE_NAME = exports.DESCRIPTIONS = exports.RESERVED_VARIABLES = exports.DEFAULT_CONFIG_PATH = exports.OVM_CONFIG_FILENAME = void 0; const os_1 = require("os"); const path_1 = __importDefault(require("path")); const vaults_1 = require("../providers/vaults"); const config_1 = require("../services/config"); const flags_1 = require("./flags"); exports.OVM_CONFIG_FILENAME = 'ovm.json'; exports.DEFAULT_CONFIG_PATH = path_1.default.join((0, os_1.homedir)(), exports.OVM_CONFIG_FILENAME); exports.RESERVED_VARIABLES = { '0': vaults_1.getVaultPath, '1': vaults_1.getVaultName, }; exports.DESCRIPTIONS = { debug: 'Enable debug mode', timestamp: 'Enable timestamp in logs', config: 'Path to the configuration file', output: `Display the output with a specific transformer (${flags_1.outputFormats.join(', ')})`, path: '[default: detect from Obsidian config] Path or Glob pattern of vaults to install plugins.', overwrite: 'Overwrite existing files without prompting', backup: 'Create .bak backup if destination exists', onlyInstalled: 'Skip vaults where plugin is not installed', mergeStrategy: `Strategy for merging configs: ${config_1.syncMergeStrategy.join(', ')}`, performOnSpecificPlugin: 'Perform action only on the specified plugin', }; exports.PLUGIN_CONFIG_FILE_NAME = 'data.json'; //# sourceMappingURL=constants.js.map