dynamic system menu

This commit is contained in:
Xuan Sang LE
2018-01-29 19:16:29 +01:00
parent ad22c6e356
commit 33ab53dddb
7 changed files with 79 additions and 40 deletions

View File

@ -17,6 +17,7 @@ self.OS.API.handler =
path = "lua-api/fs/get/"
_API.get path + p, c, (e, s) ->
_courrier.osfail "Fail to read file: #{p}", e, s
, "text"
move: (s, d, c) ->
path = "lua-api/fs/move"
@ -33,6 +34,11 @@ self.OS.API.handler =
_API.blob path + p, c, (e, s) ->
_courrier.osfail "Fail to read file: #{p}", e, s
packages: (d, c) ->
path = "lua-api/system/packages"
_API.post path, d, c, (e, s) ->
_courrier.osfail "Fail to #{d.command} package", e, s
upload: (d, c) ->
path = "lua-api/fs/upload"
_API.upload path, d, c, (e, s) ->