mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-20 00:04:14 +08:00
* cli: add acquire_cli
As given in my draft document, pipes a CLI of the given platform to the
specified process, for example:
```js
const cmd = await rpc.call('acquire_cli', {
command: 'node',
args: [
'-e',
'process.stdin.pipe(fs.createWriteStream("c:/users/conno/downloads/hello-cli"))',
],
platform: Platform.LinuxX64,
quality: 'insider',
});
```
It genericizes caching so that the CLI is also cached on the host, just
like servers.
* fix bug
27 lines
750 B
Rust
27 lines
750 B
Rust
/*---------------------------------------------------------------------------------------------
|
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
*--------------------------------------------------------------------------------------------*/
|
|
|
|
// todo: we should reduce the exported surface area over time as things are
|
|
// moved into a common CLI
|
|
pub mod auth;
|
|
pub mod constants;
|
|
#[macro_use]
|
|
pub mod log;
|
|
pub mod commands;
|
|
pub mod desktop;
|
|
pub mod options;
|
|
pub mod self_update;
|
|
pub mod state;
|
|
pub mod tunnels;
|
|
pub mod update_service;
|
|
pub mod util;
|
|
|
|
mod download_cache;
|
|
mod async_pipe;
|
|
mod json_rpc;
|
|
mod msgpack_rpc;
|
|
mod rpc;
|
|
mod singleton;
|