Skip to content
This repository has been archived by the owner on Aug 16, 2024. It is now read-only.

Add debug config and stop command for go devfile #68

Merged
merged 1 commit into from
Aug 7, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 26 additions & 2 deletions devfiles/go/devfile.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ metadata:
projects:
-
name: example
source:
source:
type: git
location: https://github.com/golang/example.git
clonePath: src/github.com/golang/example/
Expand Down Expand Up @@ -38,9 +38,33 @@ commands:
component: go-cli
command: go get -d && go run main.go
workdir: ${CHE_PROJECTS_ROOT}/src/github.com/golang/example/outyet
- name: test outyet
-
name: stop outyet
actions:
- type: exec
component: go-cli
command: kill $(pidof go)
-
name: test outyet
actions:
- type: exec
component: go-cli
command: go test
workdir: ${CHE_PROJECTS_ROOT}/src/github.com/golang/example/outyet
-
name: Debug current file
actions:
- type: vscode-launch
referenceContent: |
{
"version": "0.2.0",
"configurations": [
{
"name": "Debug current file",
"type": "go",
"request": "launch",
"mode": "auto",
"program": "${fileDirname}",
},
]
}