setUp method

Future<String> setUp(
  1. String password
)

Sets the machine up with password: the bootstrap file written. Throws TomSecretsPairingModeException; after tomSecretsPairingWrongPassword another password may be sent.

Implementation

Future<String> setUp(String password) async {
  _process.stdin.writeln(jsonEncode({'password': password}));
  await _process.stdin.flush();
  return (await _answer('setUp'))['bootstrap']! as String;
}