文件操作 - git-logger.d.ts
返回文件管理
返回主菜单
删除本文件
文件: /var/www/OLD/node_modules/simple-git/dist/src/lib/git-logger.d.ts
编辑文件内容
import { Debugger } from 'debug'; declare type OutputLoggingHandler = (message: string, ...args: any[]) => void; export interface OutputLogger extends OutputLoggingHandler { readonly label: string; info: OutputLoggingHandler; step(nextStep?: string): OutputLogger; sibling(name: string): OutputLogger; } export declare function createLogger(label: string, verbose?: string | Debugger, initialStep?: string, infoDebugger?: Debugger): OutputLogger; /** * The `GitLogger` is used by the main `SimpleGit` runner to handle logging * any warnings or errors. */ export declare class GitLogger { private _out; error: OutputLoggingHandler; warn: OutputLoggingHandler; constructor(_out?: Debugger); silent(silence?: boolean): void; } export {};
修改文件时间
将文件时间修改为当前时间的前一年
删除文件