Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
packer
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kristopher Ruzic
packer
Commits
8df1bca5
Commit
8df1bca5
authored
May 26, 2015
by
Mitchell Hashimoto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
command/meta: parse var-files
parent
7f78a2c5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
3 deletions
+1
-3
TODO.txt
TODO.txt
+0
-1
command/meta.go
command/meta.go
+1
-2
No files found.
TODO.txt
deleted
100644 → 0
View file @
7f78a2c5
- var-file doesn't work
command/meta.go
View file @
8df1bca5
...
...
@@ -32,7 +32,6 @@ type Meta struct {
flagBuildExcept
[]
string
flagBuildOnly
[]
string
flagVars
map
[
string
]
string
flagVarFiles
[]
string
}
// Core returns the core for the given template given the configured
...
...
@@ -122,7 +121,7 @@ func (m *Meta) FlagSet(n string, fs FlagSetFlags) *flag.FlagSet {
// FlagSetVars tells us what variables to use
if
fs
&
FlagSetVars
!=
0
{
f
.
Var
((
*
kvflag
.
Flag
)(
&
m
.
flagVars
),
"var"
,
""
)
f
.
Var
((
*
sliceflag
.
StringFlag
)(
&
m
.
flagVarFile
s
),
"var-file"
,
""
)
f
.
Var
((
*
kvflag
.
FlagJSON
)(
&
m
.
flagVar
s
),
"var-file"
,
""
)
}
// Create an io.Writer that writes to our Ui properly for errors.
...
...
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