Skip to content

Commit 295c52b

Browse files
committed
feat: separate commands to list channels for orderers and peers
1 parent 0359e74 commit 295c52b

1 file changed

Lines changed: 14 additions & 4 deletions

File tree

.vscode/tasks.json

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,17 @@
146146
}
147147
},
148148
{
149-
"label": "list - channels",
149+
"label": "list - channels - peer",
150+
"type": "shell",
151+
"command": "./lib/btp-chaincode-lifecycle/chaincode.sh channels ${input:select-peer}",
152+
"options": {
153+
"env": {
154+
"BTP_SERVICE_TOKEN": "${input:enter-access-token}"
155+
}
156+
}
157+
},
158+
{
159+
"label": "list - channels - orderer",
150160
"type": "shell",
151161
"command": "./lib/btp-chaincode-lifecycle/chaincode.sh channels ${input:select-orderer}",
152162
"options": {
@@ -214,18 +224,18 @@
214224
"inputs": [
215225
{
216226
"id": "enter-access-token",
217-
"description": "Enter your access token (application access token scoped atleast to a peer and orderer node, or a personal access token)",
227+
"description": "Enter your access token (scoped to the service you want to use)",
218228
"type": "promptString",
219229
"password": true
220230
},
221231
{
222232
"id": "select-peer",
223-
"description": "Which peer do you want to use?",
233+
"description": "Which peer do you want to use? (unique name for your peer)",
224234
"type": "promptString"
225235
},
226236
{
227237
"id": "select-orderer",
228-
"description": "Which orderer do you want to use?",
238+
"description": "Which orderer do you want to use? (unique name for your orderer)",
229239
"type": "promptString"
230240
},
231241
{

0 commit comments

Comments
 (0)