文件操作 - task.d.ts
返回文件管理
返回主菜单
删除本文件
文件: /var/www/OLD/node_modules/simple-git/dist/src/lib/tasks/task.d.ts
编辑文件内容
import type { BufferTask, EmptyTaskParser, SimpleGitTask, StringTask } from '../types'; export declare const EMPTY_COMMANDS: []; export declare type EmptyTask = { commands: typeof EMPTY_COMMANDS; format: 'empty'; parser: EmptyTaskParser; onError?: undefined; }; export declare function adhocExecTask(parser: EmptyTaskParser): EmptyTask; export declare function configurationErrorTask(error: Error | string): EmptyTask; export declare function straightThroughStringTask(commands: string[], trimmed?: boolean): StringTask<string>; export declare function straightThroughBufferTask(commands: string[]): BufferTask<any>; export declare function isBufferTask<R>(task: SimpleGitTask<R>): task is BufferTask<R>; export declare function isEmptyTask<R>(task: SimpleGitTask<R>): task is EmptyTask;
修改文件时间
将文件时间修改为当前时间的前一年
删除文件