File tree Expand file tree Collapse file tree 1 file changed +35
-3
lines changed
Expand file tree Collapse file tree 1 file changed +35
-3
lines changed Original file line number Diff line number Diff line change @@ -113,23 +113,25 @@ export default {
113113| commands | Array | false |
114114| shell_input | String | false |
115115
116+ ------
117+
116118| Event | Type | Required |
117- | - ----------- | ---- | -------- |
119+ | : ----------- | ---- | -------- |
118120| shell_output | Any | false |
119121
120122#### banner
121123
122124``` js
123125{
124- header: String ,
126+ header: String ,
125127 subHeader: String ,
126128 helpHeader: String ,
127129 sign: String ,
128130 img: {
129131 align: " left" | " right" ,
130132 link: String ,
131133 width: Number ,
132- height: Number }
134+ height: Number },
133135 emoji: {
134136 first: " 🔅" ,
135137 second: " 🔆" ,
@@ -149,3 +151,33 @@ export default {
149151]
150152```
151153
154+ #### output
155+
156+ ``` js
157+ < template>
158+ < v- shell @shell_output= " prompt" : shell_input= " send_to_terminal" >< / v- shell>
159+ < / template>
160+
161+ < script>
162+ export default {
163+ data (){
164+ return {
165+ send_to_terminal: ' '
166+ }
167+ },
168+ methods: {
169+ prompt (val ){
170+ if (val == " ifconfig" ){
171+ // Do somthing ... then send the data to shell
172+ this .send_to_terminal = data
173+ } else {
174+ // Else send error message in output of shell
175+ this .send_to_terminal = `
176+ '${ val} ' is not recognized as an internal command or external, an executable program or a batch file.`
177+ }
178+ }
179+ }
180+ }
181+ < / script>
182+ ```
183+
You can’t perform that action at this time.
0 commit comments