Android-cuttlefish cvd tool
Classes | Functions | Variables
cuttlefish::anonymous_namespace{reset.cpp} Namespace Reference

Classes

class  CvdResetCommandHandler
 
struct  ParsedFlags
 

Functions

static Result< ParsedFlagsParseResetFlags (cvd_common::Args subcmd_args)
 
static bool GetUserConfirm ()
 

Variables

constexpr char kSummaryHelpText []
 
constexpr char kDetailedHelpText []
 

Function Documentation

◆ GetUserConfirm()

static bool cuttlefish::anonymous_namespace{reset.cpp}::GetUserConfirm ( )
static

◆ ParseResetFlags()

static Result< ParsedFlags > cuttlefish::anonymous_namespace{reset.cpp}::ParseResetFlags ( cvd_common::Args  subcmd_args)
static

Variable Documentation

◆ kDetailedHelpText

constexpr char cuttlefish::anonymous_namespace{reset.cpp}::kDetailedHelpText[]
constexpr
Initial value:
= R"(usage: cvd reset <args>
* Warning: Cvd reset is an experimental implementation. When you are in panic,
cvd reset is the last resort.
args:
--help Prints this message.
help
--device-by-cvd-only Terminates devices that a cvd server started
This excludes the devices launched by "launch_cvd"
or "cvd_internal_start" directly (default: false)
--clean-runtime-dir Cleans up the runtime directory for the devices
Yet to be implemented. For now, if true, only if
stop_cvd supports --clear_instance_dirs and the
device could be stopped by stop_cvd, the flag takes
effects. (default: true)
--yes Resets without asking the user confirmation.
-y
description:
1. Gracefully stops all devices that the cvd client can reach.
2. Forcefully stops all run_cvd processes and their subprocesses.
3. Kill the cvd server itself if unresponsive.
4. Reset the states of the involved instance lock files
-- If cvd reset stops a device, it resets the corresponding lock file.
5. Optionally, cleans up the runtime files of the stopped devices.)"

◆ kSummaryHelpText

constexpr char cuttlefish::anonymous_namespace{reset.cpp}::kSummaryHelpText[]
constexpr
Initial value:
=
"Used to stop devices, optionally clean up instance files, and shut down "
"the deprecated cvd server process"