文件操作 - handlers.d.ts
返回文件管理
返回主菜单
删除本文件
文件: /var/www/OLD/node_modules/simple-git/dist/src/lib/types/handlers.d.ts
编辑文件内容
import { GitError } from '../errors/git-error'; /** * The node-style callback to a task accepts either two arguments with the first as a null * and the second as the data, or just one argument which is an error. */ export declare type SimpleGitTaskCallback<T = string, E extends GitError = GitError> = (err: E | null, data: T) => void; /** * The event data emitted to the progress handler whenever progress detail is received. */ export interface SimpleGitProgressEvent { /** The underlying method called - push, pull etc */ method: string; /** The type of progress being reported, note that any one task may emit many stages - for example `git clone` emits both `receiving` and `resolving` */ stage: 'compressing' | 'counting' | 'receiving' | 'resolving' | 'unknown' | 'writing' | string; /** The percent progressed as a number 0 - 100 */ progress: number; /** The number of items processed so far */ processed: number; /** The total number of items to be processed */ total: number; }
修改文件时间
将文件时间修改为当前时间的前一年
删除文件