Logo
Explore Help
Sign In
iSharkFly-Docs/packer-cn
1
0
Fork 0
You've already forked packer-cn
Code Issues Pull Requests Actions Packages Projects Releases Wiki Activity
packer-cn/plugin/command-inspect/main.go

16 lines
261 B
Go
Raw Normal View History

command/inspect: Inspect a templates contents This command prints out the components of a template, and most importantly respects the machine-readable flag so that you can programmatically inspect a template's contents without manually parsing the JSON.
2013-08-13 09:36:40 -07:00
package main
import (
"github.com/mitchellh/packer/command/inspect"
"github.com/mitchellh/packer/packer/plugin"
)
func main() {
plugin/*: update to latest API
2013-12-10 13:59:38 -08:00
server, err := plugin.Server()
if err != nil {
panic(err)
}
server.RegisterCommand(new(inspect.Command))
server.Serve()
command/inspect: Inspect a templates contents This command prints out the components of a template, and most importantly respects the machine-readable flag so that you can programmatically inspect a template's contents without manually parsing the JSON.
2013-08-13 09:36:40 -07:00
}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.23.8 Page: 72ms Template: 3ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API