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
399d8ab0
Commit
399d8ab0
authored
May 07, 2013
by
Mitchell Hashimoto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Build command plugin
parent
8697cb6f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
5 deletions
+11
-5
command/build/command.go
command/build/command.go
+4
-5
command/build/main.go
command/build/main.go
+7
-0
No files found.
command/build/command.go
View file @
399d8ab0
package
build
package
main
import
"fmt"
import
"github.com/mitchellh/packer/packer"
type
Command
byte
type
build
Command
byte
func
(
Command
)
Run
(
env
*
packer
.
Environment
,
arg
[]
string
)
int
{
fmt
.
Println
(
"HI
!"
)
func
(
Command
)
Run
(
env
packer
.
Environment
,
arg
[]
string
)
int
{
env
.
Ui
()
.
Say
(
"BUILDING
!"
)
return
0
}
...
...
command/build/main.go
0 → 100644
View file @
399d8ab0
package
main
import
"github.com/mitchellh/packer/packer/plugin"
func
main
()
{
plugin
.
ServeCommand
(
new
(
buildCommand
))
}
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