aboutsummaryrefslogtreecommitdiff
path: root/node_modules/simple-git/src/lib/runners
diff options
context:
space:
mode:
authorMinteck <contact@minteck.org>2022-02-12 10:33:06 +0100
committerMinteck <contact@minteck.org>2022-02-12 10:33:06 +0100
commit01160246e4a0c0052181c72a53737e356ea7d02d (patch)
treec6f8ea675f9147d4c06ef503697fb35d58493991 /node_modules/simple-git/src/lib/runners
parentaf898a152a14e31bdbcbbedb952ad333697553ef (diff)
downloadtwilight-01160246e4a0c0052181c72a53737e356ea7d02d.tar.gz
twilight-01160246e4a0c0052181c72a53737e356ea7d02d.tar.bz2
twilight-01160246e4a0c0052181c72a53737e356ea7d02d.zip
First commit
Diffstat (limited to 'node_modules/simple-git/src/lib/runners')
-rw-r--r--node_modules/simple-git/src/lib/runners/git-executor-chain.d.ts25
-rw-r--r--node_modules/simple-git/src/lib/runners/git-executor.d.ts15
-rw-r--r--node_modules/simple-git/src/lib/runners/promise-wrapped.d.ts2
-rw-r--r--node_modules/simple-git/src/lib/runners/scheduler.d.ts11
-rw-r--r--node_modules/simple-git/src/lib/runners/tasks-pending-queue.d.ts23
5 files changed, 76 insertions, 0 deletions
diff --git a/node_modules/simple-git/src/lib/runners/git-executor-chain.d.ts b/node_modules/simple-git/src/lib/runners/git-executor-chain.d.ts
new file mode 100644
index 0000000..7e13e09
--- /dev/null
+++ b/node_modules/simple-git/src/lib/runners/git-executor-chain.d.ts
@@ -0,0 +1,25 @@
+import { PluginStore } from '../plugins';
+import { outputHandler, SimpleGitExecutor, SimpleGitTask } from '../types';
+import { Scheduler } from './scheduler';
+export declare class GitExecutorChain implements SimpleGitExecutor {
+ private _executor;
+ private _scheduler;
+ private _plugins;
+ private _chain;
+ private _queue;
+ private _cwd;
+ get binary(): string;
+ get cwd(): string;
+ set cwd(cwd: string);
+ get env(): import("../types").GitExecutorEnv;
+ get outputHandler(): outputHandler | undefined;
+ constructor(_executor: SimpleGitExecutor, _scheduler: Scheduler, _plugins: PluginStore);
+ chain(): this;
+ push<R>(task: SimpleGitTask<R>): Promise<R>;
+ private attemptTask;
+ private onFatalException;
+ private attemptRemoteTask;
+ private attemptEmptyTask;
+ private handleTaskData;
+ private gitResponse;
+}
diff --git a/node_modules/simple-git/src/lib/runners/git-executor.d.ts b/node_modules/simple-git/src/lib/runners/git-executor.d.ts
new file mode 100644
index 0000000..c145af1
--- /dev/null
+++ b/node_modules/simple-git/src/lib/runners/git-executor.d.ts
@@ -0,0 +1,15 @@
+import { PluginStore } from '../plugins';
+import { GitExecutorEnv, outputHandler, SimpleGitExecutor, SimpleGitTask } from '../types';
+import { Scheduler } from './scheduler';
+export declare class GitExecutor implements SimpleGitExecutor {
+ binary: string;
+ cwd: string;
+ private _scheduler;
+ private _plugins;
+ private _chain;
+ env: GitExecutorEnv;
+ outputHandler?: outputHandler;
+ constructor(binary: string, cwd: string, _scheduler: Scheduler, _plugins: PluginStore);
+ chain(): SimpleGitExecutor;
+ push<R>(task: SimpleGitTask<R>): Promise<R>;
+}
diff --git a/node_modules/simple-git/src/lib/runners/promise-wrapped.d.ts b/node_modules/simple-git/src/lib/runners/promise-wrapped.d.ts
new file mode 100644
index 0000000..4f8d694
--- /dev/null
+++ b/node_modules/simple-git/src/lib/runners/promise-wrapped.d.ts
@@ -0,0 +1,2 @@
+import { SimpleGit, SimpleGitOptions } from '../../../typings';
+export declare function gitP(...args: [] | [string] | [Partial<SimpleGitOptions>] | [string, Partial<SimpleGitOptions>]): SimpleGit;
diff --git a/node_modules/simple-git/src/lib/runners/scheduler.d.ts b/node_modules/simple-git/src/lib/runners/scheduler.d.ts
new file mode 100644
index 0000000..847ed31
--- /dev/null
+++ b/node_modules/simple-git/src/lib/runners/scheduler.d.ts
@@ -0,0 +1,11 @@
+declare type ScheduleCompleteCallback = () => void;
+export declare class Scheduler {
+ private concurrency;
+ private logger;
+ private pending;
+ private running;
+ constructor(concurrency?: number);
+ private schedule;
+ next(): Promise<ScheduleCompleteCallback>;
+}
+export {};
diff --git a/node_modules/simple-git/src/lib/runners/tasks-pending-queue.d.ts b/node_modules/simple-git/src/lib/runners/tasks-pending-queue.d.ts
new file mode 100644
index 0000000..61d6073
--- /dev/null
+++ b/node_modules/simple-git/src/lib/runners/tasks-pending-queue.d.ts
@@ -0,0 +1,23 @@
+import { SimpleGitTask } from '../types';
+import { GitError } from '../errors/git-error';
+import { OutputLogger } from '../git-logger';
+declare type AnySimpleGitTask = SimpleGitTask<any>;
+declare type TaskInProgress = {
+ name: string;
+ logger: OutputLogger;
+ task: AnySimpleGitTask;
+};
+export declare class TasksPendingQueue {
+ private logLabel;
+ private _queue;
+ constructor(logLabel?: string);
+ private withProgress;
+ private createProgress;
+ push(task: AnySimpleGitTask): TaskInProgress;
+ fatal(err: GitError): void;
+ complete(task: AnySimpleGitTask): void;
+ attempt(task: AnySimpleGitTask): TaskInProgress;
+ static getName(name?: string): string;
+ private static counter;
+}
+export {};