docs(cloudcmd) add yours

coderaiser 2019-05-27 20:28:49 +03:00
parent 6b709dada9
commit 9f028ca75b

@ -4,6 +4,7 @@ If you create file `.cloudcmd.menu.js` in the `HOME` or any top-level directory,
`F2`. If you enabled it before with help of `--user-menu` command line flag.
Here you can find ready to use scripts for your `user menu`.
You can combine them in any way, and also add yours 😉.
## Rename file
@ -19,8 +20,9 @@ module.exports = {
## Convert flac to mp3
```js
Simple example of running bash scripts with help of `TerminalRun`.
```js
const isMp3 = (a) => /\.mp3$/.test(a);
module.exports = {
@ -62,8 +64,10 @@ module.exports = {
## Create User Menu File
This is how you can create `.cloudcmd.menu.js` file.
```js
module.exports = {
module.exports = {
'C - Create User Menu File': async ({DOM, CloudCmd}) => {
const {CurrentInfo} = DOM;