Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
f8d8b09a
Commit
f8d8b09a
authored
Mar 27, 2015
by
Sam Ghods
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Reduce some tab spacing in kubectl
parent
320df1d2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
cmd_test.go
pkg/kubectl/cmd/cmd_test.go
+2
-2
resource_printer.go
pkg/kubectl/resource_printer.go
+1
-1
No files found.
pkg/kubectl/cmd/cmd_test.go
View file @
f8d8b09a
...
@@ -238,6 +238,6 @@ func ExamplePrintReplicationController() {
...
@@ -238,6 +238,6 @@ func ExamplePrintReplicationController() {
fmt
.
Printf
(
"Unexpected error: %v"
,
err
)
fmt
.
Printf
(
"Unexpected error: %v"
,
err
)
}
}
// Output:
// Output:
// CONTROLLER
CONTAINER(S) IMAGE(S) SELECTOR
REPLICAS
// CONTROLLER
CONTAINER(S) IMAGE(S) SELECTOR
REPLICAS
// foo
foo someimage foo=bar
1
// foo
foo someimage foo=bar
1
}
}
pkg/kubectl/resource_printer.go
View file @
f8d8b09a
...
@@ -550,7 +550,7 @@ func printResourceQuotaList(list *api.ResourceQuotaList, w io.Writer) error {
...
@@ -550,7 +550,7 @@ func printResourceQuotaList(list *api.ResourceQuotaList, w io.Writer) error {
// PrintObj prints the obj in a human-friendly format according to the type of the obj.
// PrintObj prints the obj in a human-friendly format according to the type of the obj.
func
(
h
*
HumanReadablePrinter
)
PrintObj
(
obj
runtime
.
Object
,
output
io
.
Writer
)
error
{
func
(
h
*
HumanReadablePrinter
)
PrintObj
(
obj
runtime
.
Object
,
output
io
.
Writer
)
error
{
w
:=
tabwriter
.
NewWriter
(
output
,
20
,
5
,
3
,
' '
,
0
)
w
:=
tabwriter
.
NewWriter
(
output
,
10
,
4
,
3
,
' '
,
0
)
defer
w
.
Flush
()
defer
w
.
Flush
()
t
:=
reflect
.
TypeOf
(
obj
)
t
:=
reflect
.
TypeOf
(
obj
)
if
handler
:=
h
.
handlerMap
[
t
];
handler
!=
nil
{
if
handler
:=
h
.
handlerMap
[
t
];
handler
!=
nil
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment