Skip to content

Commit 742cd41

Browse files
authored
Updated "help" and "install" commands
help: the command list is now separated into pages use "help --page=x" to see the page №x install: you can now use "install --list" instead of "ls /system/js/apps" to see the list of available applications "install --list=x" to see the page №x sorry for bad eng
1 parent a109f54 commit 742cd41

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

js/service/shell/commands.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ const cmds = {
9292
f.stdio.writeLine(`Commands list (page ${tmp_page + 1}/${Math.ceil(commandList.length / height)}):`);
9393
// let out = 'Commands list:\n';
9494

95-
for (var i = tmp_page * height; i < (tmp_page + 1) * height; i++) {
95+
for (let i = tmp_page * height; i < (tmp_page + 1) * height; i++) {
9696
// out += `${i}: ${processor.getDescription(i)}\n`;
9797
if(i == commandList.length) break;
9898
const command = commandList[i];
@@ -195,7 +195,7 @@ const cmds = {
195195
f.stdio.setColor('magenta');
196196
f.stdio.writeLine(`Applications list (page: ${tmp_page + 1}/${Math.ceil(list.length / height)})`);
197197
f.stdio.setColor('yellow');
198-
for(var i = tmp_page * height; i < (tmp_page + 1) * height; i++){
198+
for(let i = tmp_page * height; i < (tmp_page + 1) * height; i++){
199199
if(i == list.length) break;
200200
f.stdio.writeLine(list[i]);
201201
}

0 commit comments

Comments
 (0)