You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ndr-power edited this page Jan 8, 2018
·
2 revisions
Создание команды; Command creation
Команда имеет вид; Command's structure:
constcommand={description: 'Description of the command',//Описание для команды "help"; Description for the "help" commandusage: 'command',//Как использовать. Для команды "help command"; Usage for the "help <command>"run(suffix,api,res){//Главная функция; Main functionf.stdio.writeLine("Hello world!");//Вывести текст "Hello world" на экран; Display "Hello world" on the screenreturnres(0);//Конец (res(1) если возникла ошибка); End (res(1) if was error)}}
И задается так; And it could be defined like this: