Skip to content

Commit

Permalink
tkn CLI changes as per the latest release
Browse files Browse the repository at this point in the history
  • Loading branch information
nkakkar81 committed May 6, 2020
1 parent fa81283 commit 991e11f
Show file tree
Hide file tree
Showing 11 changed files with 76 additions and 16 deletions.
2 changes: 2 additions & 0 deletions cli_reference/tkn_cli/installing-tkn.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ toc::[]

Use the `tkn` CLI to manage {pipelines-title} from a terminal. The following section describes how to install `tkn` on different platforms.

You can also find the URL to the latest binaries from the {product-title} web console by clicking the *?* icon in the upper-right corner and selecting *Command Line Tools*.

// Install tkn on Linux
include::modules/op-installing-tkn-on-linux.adoc[leveloffset=+1]

Expand Down
2 changes: 1 addition & 1 deletion modules/op-installing-tkn-on-linux.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ For Linux distributions, you can download the CLI directly as a `tar.gz` archive

.Procedure

. Download the link:https://mirror.openshift.com/pub/openshift-v4/clients/tkn/latest/[CLI].
. Download the link:https://mirror.openshift.com/pub/openshift-v4/clients/pipeline/0.9.0/tkn-linux-amd64-0.9.0.tar.gz[CLI].

. Unpack the archive:
+
Expand Down
2 changes: 1 addition & 1 deletion modules/op-installing-tkn-on-macos.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ For macOS, the `tkn` CLI is provided as a `tar.gz` archive.

.Procedure

. Download the link:https://mirror.openshift.com/pub/openshift-v4/clients/tkn/latest/[CLI].
. Download the link:https://mirror.openshift.com/pub/openshift-v4/clients/pipeline/0.9.0/tkn-macos-amd64-0.9.0.tar.gz[CLI].

. Unpack and unzip the archive.

Expand Down
2 changes: 1 addition & 1 deletion modules/op-installing-tkn-on-windows.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ For Windows, the `tkn` CLI is provided as a `zip` archive.

.Procedure

. Download the link:https://mirror.openshift.com/pub/openshift-v4/clients/tkn/latest/[CLI].
. Download the link:https://mirror.openshift.com/pub/openshift-v4/clients/pipeline/0.9.0/tkn-windows-amd64-0.9.0.zip[CLI].

. Unzip the archive with a ZIP program.

Expand Down
9 changes: 4 additions & 5 deletions modules/op-tkn-clustertask-management.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ Delete a ClusterTask resource in a cluster.
$ tkn clustertask delete mytask1 mytask2
----


== clustertask describe
Describe a ClusterTask.

Expand All @@ -33,14 +32,14 @@ $ tkn clustertask describe mytask1
== clustertask list
List ClusterTasks.

.Example: List ClusterTasks in a namespace
.Example: List ClusterTasks
----
$ tkn clustertask list -n myspace
$ tkn clustertask list
----
== clustertask start
Start ClusterTasks.

.Example: Start the `mytask` ClusterTask in a namespace
.Example: Start the `mytask` ClusterTask
----
$ tkn clustertask start mytask -n myspace
$ tkn clustertask start mytask
----
8 changes: 8 additions & 0 deletions modules/op-tkn-condition-management.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,14 @@ Delete a Condition.
$ tkn condition delete mycondition1 -n myspace
----

== condition describe
Describe a Condition.

.Example: Describe the `mycondition1` Condition in a namespace
----
$ tkn condition describe mycondition1 -n myspace
----

== condition list
List Conditions.

Expand Down
2 changes: 1 addition & 1 deletion modules/op-tkn-pipeline-run.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ $ tkn pipelinerun cancel mypipelinerun -n myspace
----

== pipelinerun delete
Delete PipelineRun.
Delete a PipelineRun.

.Example: Delete PipelineRuns from a namespace
----
Expand Down
2 changes: 1 addition & 1 deletion modules/op-tkn-task-management.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ $ tkn task create -f mytask.yaml -n myspace
----

== task delete
Delete Task.
Delete a Task.

.Example: Delete `mytask1` and `mytask2` Tasks from a namespace
----
Expand Down
2 changes: 1 addition & 1 deletion modules/op-tkn-task-run.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ $ tkn taskrun cancel mytaskrun -n myspace
----

== taskrun delete
Delete TaskRun.
Delete a TaskRun.

.Example: Delete `mytaskrun1` and `mytaskrun2` TaskRuns from a namespace
----
Expand Down
57 changes: 54 additions & 3 deletions modules/op-tkn-trigger-management.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,19 @@ $ tkn eventlistener -h
----

== eventlistener delete
Delete EventListener.
Delete an EventListener.

.Example: Delete `mylistener1` and `mylistener2` EventListeners in a namespace
----
$ tkn eventlistener delete mylistener1 mylistener2 -n myspace
----
== eventlistener describe
Describe an EventListener.

.Example: Describe the `mylistener` EventListener in a namespace
----
$ tkn eventlistener describe mylistener -n myspace
----

== eventlistener list
List EventListeners.
Expand All @@ -38,12 +45,19 @@ $ tkn triggerbinding -h
----

== triggerbinding delete
Delete TriggerBinding.
Delete a TriggerBinding.

.Example: Delete `mybinding1` and `mybinding2` TriggerBindings in a namespace
----
$ tkn triggerbinding delete mybinding1 mybinding2 -n myspace
----
== triggerbinding describe
Describe a TriggerBinding.

.Example: Describe the `mybinding` TriggerBinding in a namespace
----
$ tkn triggerbinding describe mybinding -n myspace
----

== triggerbinding list
List TriggerBindings.
Expand All @@ -61,12 +75,19 @@ Manage TriggerTemplates.
$ tkn triggertemplate -h
----
== triggertemplate delete
Delete TriggerTemplate.
Delete a TriggerTemplate.

.Example: Delete `mytemplate1` and `mytemplate2` TriggerTemplates in a namespace
----
$ tkn triggertemplate delete mytemplate1 mytemplate2 -n `myspace`
----
== triggertemplate describe
Describe a TriggerTemplate.

.Example: Describe the `mytemplate` TriggerTemplate in a namespace
----
$ tkn triggertemplate describe mytemplate -n `myspace`
----

== triggertemplate list
List TriggerTemplates.
Expand All @@ -75,3 +96,33 @@ List TriggerTemplates.
----
$ tkn triggertemplate list -n myspace
----
== clustertriggerbinding
Manage ClusterTriggerBindings.

.Example: Display ClusterTriggerBindings help
----
$ tkn clustertriggerbinding -h
----

== clustertriggerbinding delete
Delete a ClusterTriggerBinding.

.Example: Delete `myclusterbinding1` and `myclusterbinding2` ClusterTriggerBindings
----
$ tkn clustertriggerbinding delete myclusterbinding1 myclusterbinding2
----
== clustertriggerbinding describe
Describe a ClusterTriggerBinding.

.Example: Describe the `myclusterbinding` ClusterTriggerBinding
----
$ tkn clustertriggerbinding describe myclusterbinding
----

== clustertriggerbinding list
List ClusterTriggerBindings.

.Example: List all ClusterTriggerBindings
----
$ tkn clustertriggerbinding list
----
4 changes: 2 additions & 2 deletions modules/op-tkn-utility-commands.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ $ tkn completion bash
== version
Print version information of the `tkn` CLI.

.Example: Check for the availability of a newer version
.Example: Check the `tkn` version
-----
$ tkn version -c
$ tkn version
-----

0 comments on commit 991e11f

Please sign in to comment.