feature: Adds basic command layout.

This commit is contained in:
greysoh 2024-05-07 11:44:45 -04:00
parent 56338544b5
commit 32b77b12a2
Signed by: imterah
GPG key ID: 8FA7DD57BA6CEA37
6 changed files with 237 additions and 17 deletions

View file

@ -32,10 +32,12 @@ function parseBackendProviderString(data: string): BackendParsedProviderString {
if (typeof jsonData.ip != "string")
throw new Error("IP field is not a string");
if (typeof jsonData.port != "number") throw new Error("Port is not a number");
if (typeof jsonData.username != "string")
throw new Error("Username is not a string");
if (typeof jsonData.privateKey != "string")
throw new Error("Private key is not a string");