Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
H
helm3
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
go
helm3
Commits
d834028f
Commit
d834028f
authored
Nov 17, 2015
by
Brendan Melville
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixing comment in describeType for lack of args.
parent
51d960f4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
dm.go
dm/dm.go
+3
-3
No files found.
dm/dm.go
View file @
d834028f
...
...
@@ -201,11 +201,11 @@ func callAndPrintHttp(path, method, action string, reader io.ReadCloser) {
fmt
.
Println
(
string
(
body
))
}
// describeT
emplat
e prints the schema for a type specified by either a
// describeT
yp
e prints the schema for a type specified by either a
// template URL or a fully qualified registry type name.
func
describeType
(
args
[]
string
)
{
if
len
(
args
)
!=
2
{
fmt
.
Fprintln
(
os
.
Stderr
,
"No t
emplate name
supplied"
)
fmt
.
Fprintln
(
os
.
Stderr
,
"No t
ype name or URL
supplied"
)
usage
()
}
...
...
@@ -230,7 +230,7 @@ func describeType(args []string) {
}
schemaUrl
:=
tUrl
+
".schema"
callAndPrintHttp
(
schemaUrl
,
"GET"
,
"get schema for type"
,
nil
)
callAndPrintHttp
(
schemaUrl
,
"GET"
,
"get schema for type
("
+
tUrl
+
")
"
,
nil
)
}
func
loadTemplate
(
args
[]
string
)
*
expander
.
Template
{
...
...
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