Skip to content

Commit

Permalink
Remove remoteAddress
Browse files Browse the repository at this point in the history
  • Loading branch information
hoontee committed Jan 26, 2024
1 parent 2d2e9b5 commit 8b8c26f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 18 deletions.
23 changes: 10 additions & 13 deletions Lync/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand All @@ -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
Expand Down
5 changes: 0 additions & 5 deletions Lync/validator/project.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'))
Expand Down

0 comments on commit 8b8c26f

Please sign in to comment.