@@ -42,10 +42,10 @@ func (a sandboxByCreated) Less(i, j int) bool {
42
42
return a [i ].CreatedAt > a [j ].CreatedAt
43
43
}
44
44
45
- var runPodSandboxCommand = cli.Command {
45
+ var runPodCommand = cli.Command {
46
46
Name : "runp" ,
47
- Usage : "Run a new pod sandbox " ,
48
- ArgsUsage : "podsandbox -config.[json|yaml]" ,
47
+ Usage : "Run a new pod" ,
48
+ ArgsUsage : "pod -config.[json|yaml]" ,
49
49
Action : func (context * cli.Context ) error {
50
50
sandboxSpec := context .Args ().First ()
51
51
if sandboxSpec == "" {
@@ -70,10 +70,10 @@ var runPodSandboxCommand = cli.Command{
70
70
},
71
71
}
72
72
73
- var stopPodSandboxCommand = cli.Command {
73
+ var stopPodCommand = cli.Command {
74
74
Name : "stopp" ,
75
- Usage : "Stop one or more running pod sandboxes " ,
76
- ArgsUsage : "PODSANDBOX [PODSANDBOX ...]" ,
75
+ Usage : "Stop one or more running pods " ,
76
+ ArgsUsage : "POD [POD ...]" ,
77
77
Action : func (context * cli.Context ) error {
78
78
if context .NArg () == 0 {
79
79
return cli .ShowSubcommandHelp (context )
@@ -92,10 +92,10 @@ var stopPodSandboxCommand = cli.Command{
92
92
},
93
93
}
94
94
95
- var removePodSandboxCommand = cli.Command {
95
+ var removePodCommand = cli.Command {
96
96
Name : "rmp" ,
97
- Usage : "Remove one or more pod sandboxes " ,
98
- ArgsUsage : "PODSANDBOX [PODSANDBOX ...]" ,
97
+ Usage : "Remove one or more pods " ,
98
+ ArgsUsage : "POD [POD ...]" ,
99
99
Action : func (context * cli.Context ) error {
100
100
if context .NArg () == 0 {
101
101
return cli .ShowSubcommandHelp (context )
@@ -114,10 +114,10 @@ var removePodSandboxCommand = cli.Command{
114
114
},
115
115
}
116
116
117
- var podSandboxStatusCommand = cli.Command {
117
+ var podStatusCommand = cli.Command {
118
118
Name : "inspectp" ,
119
- Usage : "Display the status of one or more pod sandboxes " ,
120
- ArgsUsage : "PODSANDBOX [PODSANDBOX ...]" ,
119
+ Usage : "Display the status of one or more pods " ,
120
+ ArgsUsage : "POD [POD ...]" ,
121
121
Flags : []cli.Flag {
122
122
cli.StringFlag {
123
123
Name : "output, o" ,
@@ -147,53 +147,53 @@ var podSandboxStatusCommand = cli.Command{
147
147
},
148
148
}
149
149
150
- var listPodSandboxCommand = cli.Command {
150
+ var listPodCommand = cli.Command {
151
151
Name : "pods" ,
152
- Usage : "List pod sandboxes " ,
152
+ Usage : "List pods " ,
153
153
Flags : []cli.Flag {
154
154
cli.StringFlag {
155
155
Name : "id" ,
156
156
Value : "" ,
157
- Usage : "filter by pod sandbox id" ,
157
+ Usage : "filter by pod id" ,
158
158
},
159
159
cli.StringFlag {
160
160
Name : "name" ,
161
161
Value : "" ,
162
- Usage : "filter by pod sandbox name" ,
162
+ Usage : "filter by pod name" ,
163
163
},
164
164
cli.StringFlag {
165
165
Name : "namespace" ,
166
166
Value : "" ,
167
- Usage : "filter by pod sandbox namespace" ,
167
+ Usage : "filter by pod namespace" ,
168
168
},
169
169
cli.StringFlag {
170
170
Name : "state, s" ,
171
171
Value : "" ,
172
- Usage : "filter by pod sandbox state" ,
172
+ Usage : "filter by pod state" ,
173
173
},
174
174
cli.StringSliceFlag {
175
175
Name : "label" ,
176
176
Usage : "filter by key=value label" ,
177
177
},
178
178
cli.BoolFlag {
179
179
Name : "verbose, v" ,
180
- Usage : "show verbose info for pod sandboxes " ,
180
+ Usage : "show verbose info for pods " ,
181
181
},
182
182
cli.BoolFlag {
183
183
Name : "quiet, q" ,
184
- Usage : "list only pod sandbox IDs" ,
184
+ Usage : "list only pod IDs" ,
185
185
},
186
186
cli.StringFlag {
187
187
Name : "output, o" ,
188
188
Usage : "Output format, One of: json|yaml|table" ,
189
189
},
190
190
cli.BoolFlag {
191
191
Name : "latest, l" ,
192
- Usage : "Show recently created pod sandboxes " ,
192
+ Usage : "Show recently created pods " ,
193
193
},
194
194
cli.IntFlag {
195
195
Name : "last, n" ,
196
- Usage : "Show last n recently created pod sandboxes " ,
196
+ Usage : "Show last n recently created pods " ,
197
197
},
198
198
cli.BoolFlag {
199
199
Name : "no-trunc" ,
@@ -417,7 +417,7 @@ func ListPodSandboxes(client pb.RuntimeServiceClient, opts listOptions) error {
417
417
418
418
w := tabwriter .NewWriter (os .Stdout , 20 , 1 , 3 , ' ' , 0 )
419
419
if ! opts .verbose && ! opts .quiet {
420
- fmt .Fprintln (w , "PODSANDBOX ID\t CREATED\t STATE\t NAME\t NAMESPACE\t ATTEMPT" )
420
+ fmt .Fprintln (w , "POD ID\t CREATED\t STATE\t NAME\t NAMESPACE\t ATTEMPT" )
421
421
}
422
422
for _ , pod := range r .Items {
423
423
if opts .quiet {
0 commit comments