File tree 3 files changed +13
-14
lines changed
3 files changed +13
-14
lines changed Original file line number Diff line number Diff line change @@ -18,17 +18,19 @@ import (
18
18
)
19
19
20
20
var (
21
- attachShort = `` // Wrap with i18n.T()
22
- attachLong = attachShort + `
23
-
24
- ...`
21
+ attachShort = `Attach to an existing trace` // Wrap with i18n.T()
22
+ attachLong = attachShort
25
23
26
24
attachExamples = `
27
- # ...
28
- %[1]s trace attach -h
25
+ # Attach to a trace using its name
26
+ %[1]s trace attach kubectl-trace-d5842929-0b78-11e9-a9fa-40a3cc632df1
27
+
28
+ # Attach to a trace using its id
29
+ %[1]s trace attach 5594d7e1-0b78-11e9-b7f1-40a3cc632df1
29
30
30
- # ...
31
- %[1]s trace attach`
31
+ # Attach to a trace in a namespace using its name
32
+ %[1]s trace attach kubectl-trace-d5842929-0b78-11e9-a9fa-40a3cc632df1 -n mynamespace
33
+ `
32
34
)
33
35
34
36
// AttachOptions ...
Original file line number Diff line number Diff line change @@ -16,8 +16,7 @@ import (
16
16
17
17
var (
18
18
deleteShort = `Delete a bpftrace program execution` // Wrap with i18n.T()
19
- deleteLong = `
20
- ...`
19
+ deleteLong = deleteShort
21
20
22
21
deleteExamples = `
23
22
# Delete a specific bpftrace program by ID
Original file line number Diff line number Diff line change @@ -10,9 +10,9 @@ import (
10
10
"github.com/iovisor/kubectl-trace/pkg/meta"
11
11
"github.com/iovisor/kubectl-trace/pkg/tracejob"
12
12
"github.com/spf13/cobra"
13
+ metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
13
14
"k8s.io/apimachinery/pkg/types"
14
15
"k8s.io/apimachinery/pkg/util/duration"
15
- metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
16
16
17
17
"k8s.io/cli-runtime/pkg/genericclioptions"
18
18
batchv1client "k8s.io/client-go/kubernetes/typed/batch/v1"
@@ -23,9 +23,7 @@ import (
23
23
var (
24
24
getCommand = "get"
25
25
getShort = `Get the running traces` // Wrap with i18n.T()
26
- getLong = getShort + `
27
-
28
- ...`
26
+ getLong = getShort
29
27
30
28
getExamples = `
31
29
# Get all traces in a namespace
You can’t perform that action at this time.
0 commit comments