Skip to content

Commit 0db22b0

Browse files
committed
Fixup sample ids to match devfile API spec (no spaces)
Signed-off-by: Angel Misevski <[email protected]>
1 parent fd0b0f1 commit 0db22b0

File tree

4 files changed

+12
-12
lines changed

4 files changed

+12
-12
lines changed

samples/flattened_theia-next.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ spec:
146146
### END Contributions from Theia plugin ###
147147

148148
commands:
149-
- id: say hello
149+
- id: say-hello
150150
exec:
151151
component: plugin
152152
commandLine: echo "Hello from $(pwd)"

samples/flattened_theia-nodejs.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -224,29 +224,29 @@ spec:
224224
component: vsx-installer
225225

226226
# User commands
227-
- id: download dependencies
227+
- id: download-dependencies
228228
exec:
229229
component: nodejs
230230
commandLine: npm install
231231
workingDir: ${PROJECTS_ROOT}/project/app
232-
- id: run the app
232+
- id: run-the-app
233233
exec:
234234
component: nodejs
235235
commandLine: nodemon app.js
236236
workingDir: ${PROJECTS_ROOT}/project/app
237-
- id: run the app (debugging enabled)
237+
- id: run-the-app-(debugging-enabled)
238238
exec:
239239
component: nodejs
240240
commandLine: nodemon --inspect app.js
241241
workingDir: ${PROJECTS_ROOT}/project/app
242-
- id: stop the app
242+
- id: stop-the-app
243243
exec:
244244
component: nodejs
245245
commandLine: >-
246246
node_server_pids=$(pgrep -fx '.*nodemon (--inspect )?app.js' | tr "\\n" " ") &&
247247
echo "Stopping node server with PIDs: ${node_server_pids}" &&
248248
kill -15 ${node_server_pids} &>/dev/null && echo 'Done.'
249-
- id: Attach remote debugger
249+
- id: attach-remote-debugger
250250
vscodeLaunch:
251251
inlined: |
252252
{

samples/theia-next.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ spec:
1818
plugin:
1919
id: eclipse/che-machine-exec-plugin/nightly
2020
commands:
21-
- id: say hello
21+
- id: say-hello
2222
exec:
2323
component: plugin
2424
commandLine: echo "Hello from $(pwd)"

samples/theia-nodejs.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,29 +33,29 @@ spec:
3333
mountSources: true
3434
commands:
3535
- exec:
36-
id: download dependencies
36+
id: download-dependencies
3737
component: nodejs
3838
commandLine: npm install
3939
workingDir: ${PROJECTS_ROOT}/project/app
4040
- exec:
41-
id: run the app
41+
id: run-the-app
4242
component: nodejs
4343
commandLine: nodemon app.js
4444
workingDir: ${PROJECTS_ROOT}/project/app
4545
- exec:
46-
id: run the app (debugging enabled)
46+
id: run-the-app-(debugging-enabled)
4747
component: nodejs
4848
commandLine: nodemon --inspect app.js
4949
workingDir: ${PROJECTS_ROOT}/project/app
5050
- exec:
51-
id: stop the app
51+
id: stop-the-app
5252
component: nodejs
5353
commandLine: >-
5454
node_server_pids=$(pgrep -fx '.*nodemon (--inspect )?app.js' | tr "\\n" " ") &&
5555
echo "Stopping node server with PIDs: ${node_server_pids}" &&
5656
kill -15 ${node_server_pids} &>/dev/null && echo 'Done.'
5757
- vscodeLaunch:
58-
id: Attach remote debugger
58+
id: Attach-remote-debugger
5959
inlined: |
6060
{
6161
"version": "0.2.0",

0 commit comments

Comments
 (0)