chore: update CLI dependences, add env var options for login

This commit is contained in:
Connor Peet
2024-05-20 08:28:13 -07:00
parent aa31bfc9fd
commit eb99b85bdf
6 changed files with 863 additions and 759 deletions

View File

@@ -789,11 +789,11 @@ pub enum TunnelUserSubCommands {
#[derive(Args, Debug, Clone)]
pub struct LoginArgs {
/// An access token to store for authentication.
#[clap(long, requires = "provider")]
#[clap(long, requires = "provider", env = "VSCODE_CLI_ACCESS_TOKEN")]
pub access_token: Option<String>,
/// An access token to store for authentication.
#[clap(long, requires = "access_token")]
#[clap(long, requires = "access_token", env = "VSCODE_CLI_REFRESH_TOKEN")]
pub refresh_token: Option<String>,
/// The auth provider to use. If not provided, a prompt will be shown.

View File

@@ -634,6 +634,7 @@ const METHOD_STREAMS_STARTED: &str = "streams_started";
const METHOD_STREAM_DATA: &str = "stream_data";
const METHOD_STREAM_ENDED: &str = "stream_ended";
#[allow(dead_code)] // false positive
trait AssertIsSync: Sync {}
impl<S: Serialization, C: Send + Sync> AssertIsSync for RpcDispatcher<S, C> {}