From 8b8c26f56682c72b77f8652af97f439623ad8460 Mon Sep 17 00:00:00 2001 From: hoontee Date: Fri, 26 Jan 2024 09:51:55 -0600 Subject: [PATCH] Remove remoteAddress --- Lync/index.js | 23 ++++++++++------------- Lync/validator/project.js | 5 ----- 2 files changed, 10 insertions(+), 18 deletions(-) diff --git a/Lync/index.js b/Lync/index.js index 93b90b5..be17d32 100644 --- a/Lync/index.js +++ b/Lync/index.js @@ -108,18 +108,16 @@ const DEBUG = CONFIG.Debug */ function argHelp(err) { if (err) console.error(red('Argument error:'), yellow(err) + '\n') - console.log(`┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓ -┃ LYNC HELP Displays the list of available arguments. ┃ -┃ CONFIG Opens the config file. ┃ -┃ SERVE ${cyan('project.json', true)}? ${green('REMOTE', true)}? Syncs the project. ┃ -┃ OPEN ${cyan('project.json', true)}? ${green('REMOTE', true)}? Builds, syncs, and opens the project in Roblox Studio. ┃ -┃ BUILD ${cyan('project.json', true)}? Builds the project to file. ┃ -┃ FETCH ${cyan('project.json', true)}? Downloads the list of sources in the project file. ┃ -┣╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍┫ -┃ ${cyan('project.json', true)}? The project file to read from and serve. ┃ -┃ ${green('REMOTE', true)}? Connect to the project's ${green('remoteAddress')} instead of the localhost. ┃ -┃ ${red('Warning:')} ${yellow('REMOTE is unimplemented!')} ┃ -┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛ + console.log(`┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓ +┃ LYNC HELP Displays the list of available arguments. ┃ +┃ CONFIG Opens the config file. ┃ +┃ SERVE ${cyan('project.json', true)}? Syncs the project. ┃ +┃ OPEN ${cyan('project.json', true)}? Builds, syncs, and opens the project in Roblox Studio. ┃ +┃ BUILD ${cyan('project.json', true)}? Builds the project to file. ┃ +┃ FETCH ${cyan('project.json', true)}? Downloads the list of sources in the project file. ┃ +┣╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍┫ +┃ ${cyan('project.json', true)}? The project file to read from and serve. ┃ +┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛ `) process.exit(err && -1 || 0) } @@ -139,7 +137,6 @@ if (MODE == '' || MODE == 'help') { if (MODE != 'serve' && MODE != 'open' && MODE != 'build' && MODE != 'fetch') argHelp('Mode must be SERVE, OPEN, BUILD, or FETCH') if (MODE == 'open' && PLATFORM != 'windows' && PLATFORM != 'macos') argHelp('Cannot use OPEN mode on Linux') const PROJECT_JSON = ARGS[1] && ARGS[1].replace(/\\/g, '/') || 'default.project.json' -const USE_REMOTE = ARGS[2] && ARGS[2].toLowerCase() == 'remote' // Unimplemented //------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ // Globals diff --git a/Lync/validator/project.js b/Lync/validator/project.js index 2a06588..03b9854 100644 --- a/Lync/validator/project.js +++ b/Lync/validator/project.js @@ -127,11 +127,6 @@ module.exports.validate = function(type, json, localPath) { failed = true } - if (('remoteAddress' in json) && typeof json.remoteAddress != 'string') { - console.error(jsonError(localPath, json, json, 'remoteAddress'), yellow('Must be a string')) - failed = true - } - if ('servePlaceIds' in json) { if (!(typeof json.servePlaceIds == 'object' && Array.isArray(json.servePlaceIds))) { console.error(jsonError(localPath, json, json, 'servePlaceIds'), yellow('Must be an array'))