mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-26 11:38:51 +01:00
- Start separating a "standalone" CLI. This is a little awkward with clap- derive, but I got it working. Detection of whether the CLI _is_ standalone is still todo. - Remove the old ad-hoc update code for code-server, and use the update service instead. - Fix some of the "permission denied" errors people got while updating before. We need to rename the old running binary, not just overwrite it.
16 lines
549 B
Rust
16 lines
549 B
Rust
/*---------------------------------------------------------------------------------------------
|
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
*--------------------------------------------------------------------------------------------*/
|
|
|
|
use crate::{log, state::LauncherPaths};
|
|
|
|
use super::args::CliCore;
|
|
|
|
pub struct CommandContext {
|
|
pub log: log::Logger,
|
|
pub paths: LauncherPaths,
|
|
pub args: CliCore,
|
|
pub http: reqwest::Client,
|
|
}
|