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
0fd5c8d7
Commit
0fd5c8d7
authored
Oct 10, 2016
by
Fabiano Franz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use our own normalizers in the conventions doc
parent
3f7579ca
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
13 deletions
+14
-13
kubectl-conventions.md
docs/devel/kubectl-conventions.md
+14
-13
No files found.
docs/devel/kubectl-conventions.md
View file @
0fd5c8d7
...
...
@@ -301,24 +301,25 @@ Sample command skeleton:
// MineRecommendedName is the recommended command name for kubectl mine.
const
MineRecommendedName
=
"mine"
// MineConfig contains all the options for running the mine cli command.
type
MineConfig
struct
{
mineLatest
bool
}
// Long command description and examples.
var
(
mineLong
=
dedent
.
Dedent
(
`
mine which is described here
with lots of details.`
)
mineLong
=
templates
.
LongDesc
(
`
mine which is described here
with lots of details.`
)
mineExample
=
dedent
.
Dedent
(
`
# Run my command's first action
kubectl mine first_action
mineExample
=
templates
.
Examples
(
`
# Run my command's first action
kubectl mine first_action
# Run my command's second action on latest stuff
kubectl mine second_action --flag`
)
# Run my command's second action on latest stuff
kubectl mine second_action --flag`
)
)
// MineConfig contains all the options for running the mine cli command.
type
MineConfig
struct
{
mineLatest
bool
}
// NewCmdMine implements the kubectl mine command.
func
NewCmdMine
(
parent
,
name
string
,
f
*
cmdutil
.
Factory
,
out
io
.
Writer
)
*
cobra
.
Command
{
opts
:=
&
MineConfig
{}
...
...
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