This repository was archived by the owner on Aug 5, 2022. It is now read-only.
This repository was archived by the owner on Aug 5, 2022. It is now read-only.
[docs] The usage information in ashell.md does not match with actual output #315
Closed
Description
Following the ashell.md, the usage information does not match with the actual output in serial log.
Help Command:
acm> help
'A Shell' bash
Commands list:
help This help
eval Evaluate JavaScript in real-time
clear Clear the terminal screen
load [FILE] Saves the input text into a file
run [FILE] Runs the JavaScript program in the file
stop Stops current JavaScript execution
ls [FILE] List directory contents or file stat
cat [FILE] Print the file contents on the stdout
du [FILE] Estimate file space usage
rm [FILE] Remove file or directory
mv [SOURCE] [DEST] Move a file to destination
set Sets the input mode for 'load' accept data
transfer raw
transfer ihex
reboot Reboots the device
Actual Output:
acm> help
'A Shell' bash
Commands list:
help This help
eval Evaluate JavaScript in realtime
clear Clear the terminal screen
load [FILE] Saves the input text into a file
run [FILE] Runs the JavaScript program in the file
parse [FILE] Check if the JS syntax is correct
stop Stops current JavaScript execution
ls [FILE] List directory contents or file stat
cat [FILE] Print the file contents of a file
du [FILE] Estimate file space usage
rm [FILE] Remove file or directory
mv [SOURCE] [DEST] Move a file to destination
rmdir [TODO]
mkdir [TODO]
test Runs your current test
error Prints an error using JerryScript
ping Prints '[PONG]' to check that we are alive
at OK used by the driver when initializing
set Sets the input mode for 'load' accept data
transfer raw
transfer ihex
get Get states on the shell
reboot Reboots the device
Eval Command:
acm> eval
Ready to evaluate JavaScript.
Ctrl+X or Ctrl+C to return to shell.
js>
Actual Output:
acm> eval
Ready to evaluate JavaScript.
Ctrl+D or Ctrl+C to return to shell.
js>
Load Command:
acm> load test.js
Saving to 'test.js'
Ready for JavaScript.
Ctrl+Z to finish transfer.
Ctrl+X or Ctrl+C to cancel.
RAW>
Actual Output:
acm> load test.js
Saving to '1.js'
Ready for JavaScript.
Ctrl+Z or Ctrl+D to finish transfer.
Ctrl+X or Ctrl+C
RAW>