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
af1d7de8
Commit
af1d7de8
authored
Sep 01, 2015
by
hurf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change default output of `run` command
Use simple message instead of print result in `get` form.
parent
3dd3aa27
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
run.go
pkg/kubectl/cmd/run.go
+7
-1
No files found.
pkg/kubectl/cmd/run.go
View file @
af1d7de8
...
@@ -220,7 +220,13 @@ func Run(f *cmdutil.Factory, cmdIn io.Reader, cmdOut, cmdErr io.Writer, cmd *cob
...
@@ -220,7 +220,13 @@ func Run(f *cmdutil.Factory, cmdIn io.Reader, cmdOut, cmdErr io.Writer, cmd *cob
return
fmt
.
Errorf
(
"cannot attach to %s: not implemented"
,
kind
)
return
fmt
.
Errorf
(
"cannot attach to %s: not implemented"
,
kind
)
}
}
}
}
return
f
.
PrintObject
(
cmd
,
obj
,
cmdOut
)
outputFormat
:=
cmdutil
.
GetFlagString
(
cmd
,
"output"
)
if
outputFormat
!=
""
{
return
f
.
PrintObject
(
cmd
,
obj
,
cmdOut
)
}
cmdutil
.
PrintSuccess
(
mapper
,
false
,
cmdOut
,
mapping
.
Resource
,
args
[
0
],
"created"
)
return
nil
}
}
func
waitForPodRunning
(
c
*
client
.
Client
,
pod
*
api
.
Pod
,
out
io
.
Writer
)
error
{
func
waitForPodRunning
(
c
*
client
.
Client
,
pod
*
api
.
Pod
,
out
io
.
Writer
)
error
{
...
...
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