Skip to content

Commit

Permalink
feat: separate commands to list channels for orderers and peers
Browse files Browse the repository at this point in the history
  • Loading branch information
snigdha920 committed Jan 13, 2025
1 parent 6628631 commit 38427e2
Showing 1 changed file with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,17 @@
}
},
{
"label": "list - channels",
"label": "list - channels - peer",
"type": "shell",
"command": "./lib/btp-chaincode-lifecycle/chaincode.sh channels ${input:select-peer}",
"options": {
"env": {
"BTP_SERVICE_TOKEN": "${input:enter-access-token}"
}
}
},
{
"label": "list - channels - orderer",
"type": "shell",
"command": "./lib/btp-chaincode-lifecycle/chaincode.sh channels ${input:select-orderer}",
"options": {
Expand Down Expand Up @@ -214,18 +224,18 @@
"inputs": [
{
"id": "enter-access-token",
"description": "Enter your access token (application access token scoped atleast to a peer and orderer node, or a personal access token)",
"description": "Enter your access token (scoped to the service you want to use)",
"type": "promptString",
"password": true
},
{
"id": "select-peer",
"description": "Which peer do you want to use?",
"description": "Which peer do you want to use? (unique name for your peer)",
"type": "promptString"
},
{
"id": "select-orderer",
"description": "Which orderer do you want to use?",
"description": "Which orderer do you want to use? (unique name for your orderer)",
"type": "promptString"
},
{
Expand Down

0 comments on commit 38427e2

Please sign in to comment.