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
6bcd5de6
Commit
6bcd5de6
authored
Jun 02, 2013
by
Mitchell Hashimoto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
command/build: Help text
parent
74d812a7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
3 deletions
+12
-3
command/build/command.go
command/build/command.go
+4
-3
command/build/help.go
command/build/help.go
+8
-0
No files found.
command/build/command.go
View file @
6bcd5de6
...
...
@@ -5,18 +5,19 @@ import (
"github.com/mitchellh/packer/packer"
"io/ioutil"
"log"
"strings"
"sync"
)
type
Command
byte
func
(
Command
)
Help
()
string
{
return
"help"
return
strings
.
TrimSpace
(
helpText
)
}
func
(
Command
)
Run
(
env
packer
.
Environment
,
args
[]
string
)
int
{
func
(
c
Command
)
Run
(
env
packer
.
Environment
,
args
[]
string
)
int
{
if
len
(
args
)
!=
1
{
env
.
Ui
()
.
Error
(
"A single template argument is required."
)
env
.
Ui
()
.
Say
(
c
.
Help
()
)
return
1
}
...
...
command/build/help.go
0 → 100644
View file @
6bcd5de6
package
build
const
helpText
=
`
Usage: packer build TEMPLATE
Will execute multiple builds in parallel as defined in the template.
The various artifacts created by the template will be outputted.
`
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