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
4c517d7f
Commit
4c517d7f
authored
Dec 10, 2015
by
Ville Aikas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Clean up the printing of the types, show the actual name that the user would use in templates
parent
9a31c42d
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
dm.go
dm/dm.go
+7
-2
No files found.
dm/dm.go
View file @
4c517d7f
...
@@ -122,9 +122,14 @@ func execute() {
...
@@ -122,9 +122,14 @@ func execute() {
fmt
.
Printf
(
"Templates:
\n
"
)
fmt
.
Printf
(
"Templates:
\n
"
)
for
_
,
t
:=
range
templates
{
for
_
,
t
:=
range
templates
{
fmt
.
Printf
(
"%s:%s
\n
"
,
t
.
Name
,
t
.
Version
)
var
typeSpec
=
""
if
len
(
t
.
Collection
)
>
0
{
typeSpec
=
t
.
Collection
+
"/"
}
typeSpec
=
typeSpec
+
t
.
Name
+
":"
+
t
.
Version
fmt
.
Printf
(
"%s
\n
"
,
typeSpec
)
downloadURL
:=
getDownloadUrl
(
t
)
downloadURL
:=
getDownloadUrl
(
t
)
fmt
.
Printf
(
"
\t
short URL: github.com/%s/%s
\n
"
,
*
template_registry
,
typeSpec
)
fmt
.
Printf
(
"
\t
download URL: %s
\n
"
,
downloadURL
)
fmt
.
Printf
(
"
\t
download URL: %s
\n
"
,
downloadURL
)
}
}
case
"describe"
:
case
"describe"
:
...
...
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