mirror of
https://github.com/wavetermdev/waveterm.git
synced 2024-12-21 16:38:23 +01:00
docs: fix malformed json and json formatting (#1460)
This commit is contained in:
parent
a298703874
commit
9805ce4921
@ -126,7 +126,7 @@ Suppose I want a widget that will run speedtest-go when opened. Then, I can defi
|
|||||||
"view": "term",
|
"view": "term",
|
||||||
"controller": "cmd",
|
"controller": "cmd",
|
||||||
"cmd": "speedtest-go --unix",
|
"cmd": "speedtest-go --unix",
|
||||||
"cmd:clearonstart"
|
"cmd:clearonstart": true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -144,13 +144,13 @@ Now suppose I wanted to run a TUI app, for instance, `dua`. Well, it turns out t
|
|||||||
```json
|
```json
|
||||||
<... other widgets go here ...>,
|
<... other widgets go here ...>,
|
||||||
"dua" : {
|
"dua" : {
|
||||||
"icon": "brands@linux",
|
"icon": "brands@linux",
|
||||||
"label": "dua",
|
"label": "dua",
|
||||||
"blockdef": {
|
"blockdef": {
|
||||||
"meta": {
|
"meta": {
|
||||||
"view": "term",
|
"view": "term",
|
||||||
"controller": "cmd",
|
"controller": "cmd",
|
||||||
"cmd": "dua"
|
"cmd": "dua"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user