Files
huishou/node_modules/@simple-git/argv-parser/dist/src/config/detect-config-action.d.ts
T
2026-07-27 14:07:26 +08:00

14 lines
494 B
TypeScript

import type { ConfigScope } from '../args/parse-argv.types';
import { type Flag } from '../flags/flags.helpers';
import type { ConfigOperation } from './config.types';
export declare function detectConfigAction(flags: Flag[], positionals: string[]): ConfigOperation | null;
export declare function toOperation(scope: ConfigScope, operation: ConfigOperation): {
key: string;
value: string;
scope: ConfigScope;
} | {
key: string;
scope: ConfigScope;
value?: undefined;
};