-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #49 from max36895/1.5
1.5
- Loading branch information
Showing
27 changed files
with
1,793 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
MIT License | ||
|
||
Copyright (c) 2022 Maxim M <[email protected]> | ||
Copyright (c) 2023 Maxim M <[email protected]> | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ | |
/** | ||
* Универсальное приложение по созданию навыков и ботов. | ||
* Скрипт позволяет создавать шаблон для приложения. | ||
* @version 1.0.1 | ||
* @version 1.5.0 | ||
* @author Maxim-M [email protected] | ||
* @module | ||
*/ | ||
|
@@ -16,18 +16,25 @@ const argv = process.argv; | |
const param = {}; | ||
if (argv[2]) { | ||
param.command = argv[2].toLowerCase(); | ||
param.hostname = 'localhost'; | ||
param.port = 3000; | ||
if (argv[3]) { | ||
if (argv[3].indexOf('.json') !== -1) { | ||
if (utils.isFile(argv[3])) { | ||
const jsonParam = JSON.parse(utils.fread(argv[3])); | ||
param.appName = jsonParam.name; | ||
param.params = jsonParam; | ||
if (jsonParam.hostname) { | ||
param.hostname = jsonParam.hostname; | ||
} | ||
if (jsonParam.port) { | ||
param.port = jsonParam.port; | ||
} | ||
} | ||
} else { | ||
param.appName = argv[3]; | ||
} | ||
} | ||
} | ||
console.log(param); | ||
consoleController.main(param); | ||
process.exitCode = 1; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.