pub enum RecoverCommands {
Scan {
provider: String,
verbose: bool,
include_old: bool,
},
Recording {
server: String,
session: Option<String>,
output: Option<String>,
},
Database {
backup: String,
session: Option<String>,
output: Option<String>,
format: String,
},
Jsonl {
file: String,
output: Option<String>,
aggressive: bool,
},
Orphans {
provider: String,
unindexed: bool,
verify: bool,
},
Repair {
path: String,
backup: bool,
dry_run: bool,
},
Status {
provider: String,
system: bool,
},
Convert {
input: String,
output: Option<String>,
format: Option<String>,
compat: String,
},
Extract {
path: String,
output: Option<String>,
all_formats: bool,
include_edits: bool,
},
Detect {
file: String,
verbose: bool,
json: bool,
},
Upgrade {
project_paths: Vec<String>,
provider: String,
target_format: String,
no_backup: bool,
dry_run: bool,
},
}Variants§
Scan
Scan for recoverable sessions from various sources
Fields
Recording
Recover sessions from the recording API server
Fields
Database
Recover sessions from SQLite database backups
Fields
Jsonl
Recover sessions from incomplete/corrupted JSONL files
Fields
Orphans
List sessions from VS Code’s workspaceStorage that may be orphaned
Fields
Repair
Repair corrupted session files in place
Fields
Status
Show recovery status and recommendations
Fields
Convert
Convert session files between JSON and JSONL formats
Fields
Extract
Extract sessions from a VS Code workspace by project path
Fields
Detect
Detect and display session format and version information
Fields
Upgrade
Upgrade session files to the current provider format (JSON to JSONL for VS Code 1.109+)
Fields
Trait Implementations§
Source§impl FromArgMatches for RecoverCommands
impl FromArgMatches for RecoverCommands
Source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches,
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>
Source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches to self.Source§fn update_from_arg_matches_mut<'b>(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut<'b>( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches to self.Source§impl Subcommand for RecoverCommands
impl Subcommand for RecoverCommands
Source§fn augment_subcommands<'b>(__clap_app: Command) -> Command
fn augment_subcommands<'b>(__clap_app: Command) -> Command
Source§fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command
fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command
Append to
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§fn has_subcommand(__clap_name: &str) -> bool
fn has_subcommand(__clap_name: &str) -> bool
Test whether
Self can parse a specific subcommandAuto Trait Implementations§
impl Freeze for RecoverCommands
impl RefUnwindSafe for RecoverCommands
impl Send for RecoverCommands
impl Sync for RecoverCommands
impl Unpin for RecoverCommands
impl UnsafeUnpin for RecoverCommands
impl UnwindSafe for RecoverCommands
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more