@kui-shell/core
Version:
An Electron-based shell for cloud-native development
19 lines (18 loc) • 732 B
TypeScript
export declare const patterns: {
suffixComments: RegExp;
prefixComments: RegExp;
dash: RegExp;
whitespace: RegExp;
};
/**
* Split the given string into an argv
*
*/
export interface Split {
A: string[];
endIndices: number[];
}
export declare const _split: (str: string, removeOuterQuotes?: boolean, returnIndices?: boolean, removeInlineOuterQuotes?: boolean, splitBy?: string, startIdx?: number, endIdx?: number) => Split | string[];
export declare const split: (str: string, removeOuterQuotes?: boolean, removeInlineOuterQuotes?: boolean, splitBy?: string, startIdx?: number, endIdx?: number) => string[];
/** Look for cmd1; cmd2 patterns */
export declare function semiSplit(command: string): string[];