UNPKG

@sussudio/platform

Version:

Internal APIs for VS Code's service injection the base services.

18 lines (16 loc) 1 kB
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *--------------------------------------------------------------------------------------------*/ import { IProcessEnvironment } from '@sussudio/base/common/platform.mjs'; import { NativeParsedArgs } from '../common/argv.mjs'; /** * Use this to parse raw code process.argv such as: `Electron . --verbose --wait` */ export declare function parseMainProcessArgv(processArgv: string[]): NativeParsedArgs; /** * Use this to parse raw code CLI process.argv such as: `Electron cli.js . --verbose --wait` */ export declare function parseCLIProcessArgv(processArgv: string[]): NativeParsedArgs; export declare function addArg(argv: string[], ...args: string[]): string[]; export declare function isLaunchedFromCli(env: IProcessEnvironment): boolean;