checkServerTools method

Future<ToolCheckResult> checkServerTools()

Check tools needed for server deployment with spinner

Implementation

Future<ToolCheckResult> checkServerTools() async {
  return await UserPrompt.withSpinner(
    'Checking server deployment tools...',
    () async {
      final List<ToolStatus> tools = await Future.wait(<Future<ToolStatus>>[checkDocker(), checkGcloud()]);
      return ToolCheckResult(tools: tools);
    },
    doneMessage: '✓ Server tools checked',
  );
}