mirror of
https://github.com/laurent22/joplin.git
synced 2025-02-04 19:16:07 +02:00
18 lines
492 B
TypeScript
18 lines
492 B
TypeScript
import { CommandRuntime, CommandDeclaration } from '@joplin/lib/services/CommandService';
|
|
import { _ } from '@joplin/lib/locale';
|
|
import bridge from '../services/bridge';
|
|
import Setting from '@joplin/lib/models/Setting';
|
|
|
|
export const declaration:CommandDeclaration = {
|
|
name: 'openProfileDirectory',
|
|
label: () => _('Open profile directory'),
|
|
};
|
|
|
|
export const runtime = ():CommandRuntime => {
|
|
return {
|
|
execute: async () => {
|
|
bridge().openItem(Setting.value('profileDir'));
|
|
},
|
|
};
|
|
};
|