Files
vscode/cli/src/commands/context.rs
Connor Peet 07453efc00 cli: implement better self-updating
- 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.
2022-09-23 17:47:39 -07:00

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,
}