Skip to content

Commit

Permalink
#213 delete multiple resource
Browse files Browse the repository at this point in the history
Signed-off-by: Yevhen Vydolob <yvydolob@redhat.com>
  • Loading branch information
evidolob committed Jul 22, 2020
1 parent a70bac2 commit f141820
Show file tree
Hide file tree
Showing 25 changed files with 193 additions and 968 deletions.
216 changes: 14 additions & 202 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,32 +35,24 @@
"onCommand:tekton.openInEditor",
"onCommand:tekton.pipeline.list",
"onCommand:tekton.pipeline.describe",
"onCommand:tekton.pipeline.delete",
"onCommand:tekton.condition.delete",
"onCommand:tekton.explorerView.delete",
"onCommand:tekton.customView.delete",
"onCommand:tekton.pipelinerun.list",
"onCommand:tekton.pipelinerun.describe",
"onCommand:tekton.pipelinerun.logs",
"onCommand:tekton.pipelinerun.followLogs",
"onCommand:tekton.pipelinerun.cancel",
"onCommand:tekton.pipelinerun.delete",
"onCommand:tekton.pipelineresource.list",
"onCommand:tekton.pipelineresource.describe",
"onCommand:tekton.pipelineresource.create",
"onCommand:tekton.pipelineresource.create.palette",
"onCommand:tekton.pipelineresrouce.delete",
"onCommand:tekton.task.start",
"onCommand:tekton.task.list",
"onCommand:tekton.task.delete",
"onCommand:tekton.triggertemplate.delete",
"onCommand:tekton.triggerbinding.delete",
"onCommand:tekton.eventlistener.delete",
"onCommand:tekton.clustertask.list",
"onCommand:tekton.clustertask.delete",
"onCommand:tekton.taskrun.list",
"onCommand:tekton.taskrun.listFromTask",
"onCommand:tekton.taskrun.logs",
"onCommand:tekton.taskrun.followLogs",
"onCommand:tekton.taskrun.delete",
"onCommand:tekton.explorer.refresh",
"onCommand:tekton.about",
"onCommand:tekton.output",
Expand Down Expand Up @@ -194,14 +186,14 @@
"enablement": "tekton:tkn"
},
{
"command": "tekton.condition.delete",
"command": "tekton.explorerView.delete",
"title": "Delete",
"category": "Tekton",
"enablement": "tekton:tkn"
},
{
"command": "tekton.condition.delete.palette",
"title": "Delete Condition",
"command": "tekton.customView.delete",
"title": "Delete",
"category": "Tekton",
"enablement": "tekton:tkn"
},
Expand Down Expand Up @@ -240,18 +232,6 @@
"category": "Tekton",
"enablement": "tekton:tkn"
},
{
"command": "tekton.pipeline.delete",
"title": "Delete",
"category": "Tekton",
"enablement": "tekton:tkn"
},
{
"command": "tekton.pipeline.delete.palette",
"title": "Delete Pipeline",
"category": "Tekton",
"enablement": "tekton:tkn"
},
{
"command": "tekton.pipelineresource.list",
"title": "List PipelineResources",
Expand Down Expand Up @@ -282,18 +262,6 @@
"category": "Tekton",
"enablement": "tekton:tkn"
},
{
"command": "tekton.pipelineresource.delete",
"title": "Delete",
"category": "Tekton",
"enablement": "tekton:tkn"
},
{
"command": "tekton.pipelineresource.delete.palette",
"title": "Delete Pipeline Resource",
"category": "Tekton",
"enablement": "tekton:tkn"
},
{
"command": "tekton.pipelinerun.list",
"title": "List PipelineRuns",
Expand Down Expand Up @@ -348,18 +316,6 @@
"category": "Tekton",
"enablement": "tekton:tkn"
},
{
"command": "tekton.pipelinerun.delete",
"title": "Delete",
"category": "Tekton",
"enablement": "tekton:tkn"
},
{
"command": "tekton.pipelinerun.delete.palette",
"title": "Delete Pipeline Run",
"category": "Tekton",
"enablement": "tekton:tkn"
},
{
"command": "tekton.task.start",
"title": "Start",
Expand All @@ -378,72 +334,12 @@
"category": "Tekton",
"enablement": "tekton:tkn"
},
{
"command": "tekton.task.delete",
"title": "Delete",
"category": "Tekton",
"enablement": "tekton:tkn"
},
{
"command": "tekton.task.delete.palette",
"title": "Delete Task",
"category": "Tekton",
"enablement": "tekton:tkn"
},
{
"command": "tekton.triggertemplate.delete",
"title": "Delete",
"category": "Tekton",
"enablement": "tekton:tkn"
},
{
"command": "tekton.triggertemplate.delete.palette",
"title": "Delete TriggerTemplate",
"category": "Tekton",
"enablement": "tekton:tkn"
},
{
"command": "tekton.triggerbinding.delete",
"title": "Delete",
"category": "Tekton",
"enablement": "tekton:tkn"
},
{
"command": "tekton.triggerbinding.delete.palette",
"title": "Delete TriggerBinding",
"category": "Tekton",
"enablement": "tekton:tkn"
},
{
"command": "tekton.eventlistener.delete",
"title": "Delete",
"category": "Tekton",
"enablement": "tekton:tkn"
},
{
"command": "tekton.eventlistener.delete.palette",
"title": "Delete EventListener",
"category": "Tekton",
"enablement": "tekton:tkn"
},
{
"command": "tekton.clustertask.list",
"title": "List ClusterTasks",
"category": "Tekton",
"enablement": "tekton:tkn"
},
{
"command": "tekton.clustertask.delete",
"title": "Delete",
"category": "Tekton",
"enablement": "tekton:tkn"
},
{
"command": "tekton.clustertask.delete.palette",
"title": "Delete ClusterTask",
"category": "Tekton",
"enablement": "tekton:tkn"
},
{
"command": "tekton.taskrun.list",
"title": "List TaskRuns",
Expand Down Expand Up @@ -492,18 +388,6 @@
"category": "Tekton",
"enablement": "tekton:tkn"
},
{
"command": "tekton.taskrun.delete",
"title": "Delete",
"category": "Tekton",
"enablement": "tekton:tkn"
},
{
"command": "tekton.taskrun.delete.palette",
"title": "Delete Task Run",
"category": "Tekton",
"enablement": "tekton:tkn"
},
{
"command": "tekton.explorer.refresh",
"title": "Refresh View",
Expand Down Expand Up @@ -603,12 +487,12 @@
"when": "view =~ /^tekton(CustomTree|PipelineExplorer)View/"
},
{
"command": "tekton.pipeline.delete",
"when": "view =~ /^tekton(CustomTree|PipelineExplorer)View/"
"command": "tekton.explorerView.delete",
"when": "view =~ /^tekton(PipelineExplorer)View/"
},
{
"command": "tekton.condition.delete",
"when": "view =~ /^tekton(CustomTree|PipelineExplorer)View/"
"command": "tekton.customView.delete",
"when": "view =~ /^tekton(CustomTree)View/"
},
{
"command": "tekton.pipelineresource.describe",
Expand All @@ -622,10 +506,6 @@
"command": "tekton.pipelineresource.create",
"when": "view =~ /^tekton(CustomTree|PipelineExplorer)View/"
},
{
"command": "tekton.pipelineresource.delete",
"when": "view =~ /^tekton(CustomTree|PipelineExplorer)View/"
},
{
"command": "tekton.pipelinerun.describe",
"when": "view =~ /^tekton(CustomTree|PipelineExplorer)View/"
Expand All @@ -642,34 +522,10 @@
"command": "tekton.pipelinerun.cancel",
"when": "view =~ /^tekton(CustomTree|PipelineExplorer)View/"
},
{
"command": "tekton.pipelinerun.delete",
"when": "view =~ /^tekton(CustomTree|PipelineExplorer)View/"
},
{
"command": "tekton.task.start",
"when": "view =~ /^tekton(CustomTree|PipelineExplorer)View/"
},
{
"command": "tekton.task.delete",
"when": "view =~ /^tekton(CustomTree|PipelineExplorer)View/"
},
{
"command": "tekton.triggertemplate.delete",
"when": "view =~ /^tekton(CustomTree|PipelineExplorer)View/"
},
{
"command": "tekton.triggerbinding.delete",
"when": "view =~ /^tekton(CustomTree|PipelineExplorer)View/"
},
{
"command": "tekton.eventlistener.delete",
"when": "view =~ /^tekton(CustomTree|PipelineExplorer)View/"
},
{
"command": "tekton.clustertask.delete",
"when": "view =~ /^tekton(CustomTree|PipelineExplorer)View/"
},
{
"command": "tekton.taskrun.list",
"when": "view =~ /^tekton(CustomTree|PipelineExplorer)View/"
Expand All @@ -685,10 +541,6 @@
{
"command": "tekton.taskrun.followLogs",
"when": "view =~ /^tekton(CustomTree|PipelineExplorer)View/"
},
{
"command": "tekton.taskrun.delete",
"when": "view =~ /^tekton(CustomTree|PipelineExplorer)View/"
}
],
"view/title": [
Expand Down Expand Up @@ -755,14 +607,14 @@
"group": "c1@3"
},
{
"command": "tekton.pipeline.delete",
"when": "view =~ /^tekton(CustomTree|PipelineExplorer)View/ && viewItem == pipeline",
"command": "tekton.explorerView.delete",
"when": "view =~ /^tekton(PipelineExplorer)View/ && viewItem =~ /^(pipeline|pipelinerun|clustertask|task|pipelineresource|triggertemplates|triggerbinding|clustertriggerbinding|eventlistener|conditions)/",
"group": "c2"
},
{
"command": "tekton.condition.delete",
"when": "view =~ /^tekton(CustomTree|PipelineExplorer)View/ && viewItem == conditions",
"group": "c1"
"command": "tekton.customView.delete",
"when": "view =~ /^tekton(CustomTree)View/",
"group": "c2"
},
{
"command": "tekton.pipelineresource.create",
Expand All @@ -779,11 +631,6 @@
"when": "view =~ /^tekton(CustomTree|PipelineExplorer)View/ && viewItem == pipelineresource",
"group": "c1@3"
},
{
"command": "tekton.pipelineresource.delete",
"when": "view =~ /^tekton(CustomTree|PipelineExplorer)View/ && viewItem == pipelineresource",
"group": "c2"
},
{
"command": "tekton.about",
"when": "view =~ /^tekton(CustomTree|PipelineExplorer)View/",
Expand Down Expand Up @@ -819,11 +666,6 @@
"when": "view =~ /^tekton(CustomTree|PipelineExplorer)View/ && viewItem == pipelinerun",
"group": "c2@2"
},
{
"command": "tekton.pipelinerun.delete",
"when": "view =~ /^tekton(CustomTree|PipelineExplorer)View/ && viewItem == pipelinerun",
"group": "c2@3"
},
{
"command": "tekton.task.start",
"when": "view =~ /^tekton(CustomTree|PipelineExplorer)View/ && viewItem == task",
Expand All @@ -839,26 +681,6 @@
"when": "view =~ /^tekton(CustomTree|PipelineExplorer)View/ && viewItem == task",
"group": "c1@2"
},
{
"command": "tekton.task.delete",
"when": "view =~ /^tekton(CustomTree|PipelineExplorer)View/ && viewItem == task",
"group": "c2"
},
{
"command": "tekton.triggertemplate.delete",
"when": "view =~ /^tekton(CustomTree|PipelineExplorer)View/ && viewItem == triggertemplates",
"group": "c1"
},
{
"command": "tekton.triggerbinding.delete",
"when": "view =~ /^tekton(CustomTree|PipelineExplorer)View/ && viewItem == triggerbinding",
"group": "c1"
},
{
"command": "tekton.eventlistener.delete",
"when": "view =~ /^tekton(CustomTree|PipelineExplorer)View/ && viewItem == eventlistener",
"group": "c1"
},
{
"command": "tekton.clustertask.list",
"when": "view =~ /^tekton(CustomTree|PipelineExplorer)View/ && viewItem == clustertasknode",
Expand All @@ -869,11 +691,6 @@
"when": "view =~ /^tekton(CustomTree|PipelineExplorer)View/ && viewItem == clustertask",
"group": "c1@2"
},
{
"command": "tekton.clustertask.delete",
"when": "view =~ /^tekton(CustomTree|PipelineExplorer)View/ && viewItem == clustertask",
"group": "c2"
},
{
"command": "tekton.taskrun.list",
"when": "view =~ /^tekton(CustomTree|PipelineExplorer)View/ && viewItem == pipelinerun",
Expand All @@ -889,11 +706,6 @@
"when": "view =~ /^tekton(CustomTree|PipelineExplorer)View/ && viewItem == taskrun",
"group": "c1@1"
},
{
"command": "tekton.taskrun.delete",
"when": "view =~ /^tekton(CustomTree|PipelineExplorer)View/ && viewItem == taskrun",
"group": "c2"
},
{
"command": "tekton.open.task",
"when": "view =~ /^tekton(CustomTree|PipelineExplorer)View/ && viewItem == taskrun",
Expand Down
Loading

0 comments on commit f141820

Please sign in to comment.