UNPKG

todo-txt-cli

Version:

A CLI for todo.txt files - http://todotxt.org/

43 lines (42 loc) 1.16 kB
export namespace defaults { namespace editor { let darwin: string[]; let linux: string[]; let win32: string[]; } let todoDir: string; } export function getEditor(): string[]; export function launchEditor(cmd: string, ...args: string[]): void; export class AppConfig extends AConfig { static getFilename(options: any): string | undefined; /** * @param {{ * todoDir?: string * }} [options] * @returns {Promise<AppConfig>} */ static load(options?: { todoDir?: string; }): Promise<AppConfig>; constructor(filename?: string); /** * @param {string} key * @param {string} val * @param {boolean} [isGlobal] */ set(key: string, val: string, isGlobal?: boolean): void; /** * get colors from config * @returns {ColorConfig} */ getColorConfig(): ColorConfig; /** * @returns {string[] | undefined} */ getEditor(): string[] | undefined; getTimestamp(): boolean; getTodoDir(): any; } export type ColorConfig = import("#colors.js").ColorConfig; import { AppConfig as AConfig } from '@commenthol/app-config';