service/setup_device/device_setup library
Classes
- AppExecuterProvider
- BaseSnappCommand
- CliIcons
- DeviceConfigContext
- DeviceHostProvider
- DeviceSetup
-
The
DeviceSetup
class orchestrates a series of setup steps for configuring a DeviceConfigContext. It follows the Chain of Responsibility pattern, where each setup step processes the device context and passes it to the next step in the sequence. - DeviceSetupStep
-
The
DeviceSetupStep
class represents a single step in the device setup process. It is an abstract class that defines the interface for processing aDeviceConfigContext
. - DeviceTypeProvider
- InteractionService
- LoggerService
- ManualAppExecuterProvider
- Spinner
- SshConnectionProvider
Extensions
- ArgResultsExtension on ArgResults
Properties
- interaction → InteractionService
-
final
- logger → LoggerService
-
Sets default logger mode
final
Functions
-
throwToolExit(
String? message, {int? exitCode}) → Never - Throw a specialized exception for expected situations where the tool should exit with a clear message to the user and no stack trace unless the --verbose option is specified. For example: network errors.
Exceptions / Errors
- ToolExit
- Specialized exception for expected situations where the tool should exit with a clear message to the user and no stack trace unless the --verbose option is specified. For example: network errors.