todo-txt-cli
Version:
A CLI for todo.txt files - http://todotxt.org/
102 lines (101 loc) • 3.04 kB
TypeScript
export function tokenize(txt: string): Token[] | [];
export function lineBreak(line: string, { range, indent, firstIndent }?: {
range?: number;
indent?: number;
firstIndent?: number;
}): string;
export function buildHelp(action?: string): string;
export function renderHelp(colors: import("#colors.js").Colors, action: string): string;
export namespace help {
function header(action?: string): string;
let optionsHeader: string;
let optionFlags: {
'-@': string;
'-+': string;
'-c': string;
'-C': string;
'-d': string;
'-h': string;
'-l': string;
'-r': string;
'-s': string;
'-t': string;
'-T': string;
'-v': string;
};
let actionHeader: string;
namespace options {
export let add: string[];
export { optsAlways as append };
export { optsAlways as archive };
export { optsAlways as del };
export { optsAlways as depri };
export { optsAlways as done };
export { optsAlways as due };
export let edit: string[];
export { optsList as list };
export { optsList as listall };
export { optsList as listcon };
export { optsList as listpri };
export { optsList as listproj };
export { optsAlways as prepend };
export { optsAlways as pri };
export { optsAlways as overdue };
export { optsAlways as replace };
export { optsAlways as set };
export { optsAlways as sort };
export { optsAlways as undo };
export let version: string[];
export let help: string[];
}
namespace actions {
let add_1: string;
export { add_1 as add };
export let append: string;
export let archive: string;
export let del: string;
export let depri: string;
export let done: string;
export let due: string;
let edit_1: string;
export { edit_1 as edit };
export let list: string;
export let listall: string;
export let listcon: string;
export let listpri: string;
export let listproj: string;
export let prepend: string;
export let pri: string;
export let overdue: string;
export let replace: string;
export let set: string;
export let sort: string;
export let undo: string;
let version_1: string;
export { version_1 as version };
let help_1: string;
export { help_1 as help };
}
namespace alt {
let rm: string;
let dp: string;
let d: string;
let ls: string;
let lsa: string;
let lst: string;
let lsp: string;
let lsprj: string;
let pre: string;
let p: string;
}
}
export type Token = {
text: string;
/**
* modifier
*/
mod?: "bold" | "underline" | undefined;
};
declare const optsAlways: string[];
declare const optsList: string[];
export {};