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
a675b89b
Commit
a675b89b
authored
Aug 11, 2013
by
Mitchell Hashimoto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
packer: -machine-readable not double hyphen
parent
b3e8a419
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
2 deletions
+3
-2
command/build/help.go
command/build/help.go
+1
-0
packer.go
packer.go
+1
-1
packer/environment.go
packer/environment.go
+1
-1
No files found.
command/build/help.go
View file @
a675b89b
...
...
@@ -10,6 +10,7 @@ Options:
-debug Debug mode enabled for builds
-force Force a build to continue if artifacts exist, deletes existing artifacts
-machine-readable Machine-readable output
-except=foo,bar,baz Build all builds other than these
-only=foo,bar,baz Only build the given builds by name
-var 'key=value' Variable for templates, can be used multiple times.
...
...
packer.go
View file @
a675b89b
...
...
@@ -122,7 +122,7 @@ func main() {
// to remove this flag.
func
extractMachineReadable
(
args
[]
string
)
([]
string
,
bool
)
{
for
i
,
arg
:=
range
args
{
if
arg
==
"-
-
machine-readable"
{
if
arg
==
"-machine-readable"
{
// We found it. Slice it out.
result
:=
make
([]
string
,
len
(
args
)
-
1
)
copy
(
result
,
args
[
:
i
])
...
...
packer/environment.go
View file @
a675b89b
...
...
@@ -301,7 +301,7 @@ func (e *coreEnvironment) printHelp() {
}
e
.
ui
.
Say
(
"
\n
Globally recognized options:"
)
e
.
ui
.
Say
(
" -
-
machine-readable Machine-readable output format."
)
e
.
ui
.
Say
(
" -machine-readable Machine-readable output format."
)
}
// Returns the UI for the environment. The UI is the interface that should
...
...
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