packer/command
Lucas Bajolet c0e594738b init: warn if no requirements specified
When users call `packer init' on a template that does not specify a
`required_plugin' block, the command succeeds but does nothing, which is
not helpful for users that may expect their plugins to install.

To remedy that problem, we now output a message like what `packer
plugins required' does on templates without such a block, so that users
have an idea of what to change in order to get the command to work.
2023-09-27 14:47:00 -04:00
..
enumflag [COMPLIANCE] License changes (#12568) 2023-08-10 15:53:29 -07:00
flag-kv [COMPLIANCE] License changes (#12568) 2023-08-10 15:53:29 -07:00
flag-slice [COMPLIANCE] License changes (#12568) 2023-08-10 15:53:29 -07:00
test-fixtures hcl2_upgrade: add required_plugins in out template 2023-07-18 16:04:55 -04:00
build.go [COMPLIANCE] License changes (#12568) 2023-08-10 15:53:29 -07:00
build_cancellation_test.go [COMPLIANCE] License changes (#12568) 2023-08-10 15:53:29 -07:00
build_cleanup_script_test.go [COMPLIANCE] License changes (#12568) 2023-08-10 15:53:29 -07:00
build_parallel_test.go chore: unnecessary use of fmt.Sprintf 2023-09-21 09:38:23 -04:00
build_test.go chore: remove refs to deprecated io/ioutil 2023-09-26 11:13:31 -04:00
build_timeout_test.go [COMPLIANCE] License changes (#12568) 2023-08-10 15:53:29 -07:00
build_windows_test.go [COMPLIANCE] License changes (#12568) 2023-08-10 15:53:29 -07:00
cli.go [COMPLIANCE] License changes (#12568) 2023-08-10 15:53:29 -07:00
command_test.go chore: remove refs to deprecated io/ioutil 2023-09-26 11:13:31 -04:00
config_file_unix.go [COMPLIANCE] License changes (#12568) 2023-08-10 15:53:29 -07:00
config_file_windows.go [COMPLIANCE] License changes (#12568) 2023-08-10 15:53:29 -07:00
configtype_enumer.go Run make fmt to fix checks 2023-04-27 15:17:31 -04:00
console.go [COMPLIANCE] License changes (#12568) 2023-08-10 15:53:29 -07:00
console_test.go [COMPLIANCE] License changes (#12568) 2023-08-10 15:53:29 -07:00
exec_test.go [COMPLIANCE] License changes (#12568) 2023-08-10 15:53:29 -07:00
fix.go [COMPLIANCE] License changes (#12568) 2023-08-10 15:53:29 -07:00
fix_test.go [COMPLIANCE] License changes (#12568) 2023-08-10 15:53:29 -07:00
fmt.go [COMPLIANCE] License changes (#12568) 2023-08-10 15:53:29 -07:00
fmt_test.go chore: remove refs to deprecated io/ioutil 2023-09-26 11:13:31 -04:00
hcl2_upgrade.go [COMPLIANCE] License changes (#12568) 2023-08-10 15:53:29 -07:00
hcl2_upgrade_test.go chore: remove refs to deprecated io/ioutil 2023-09-26 11:13:31 -04:00
init.go init: warn if no requirements specified 2023-09-27 14:47:00 -04:00
init_test.go init: warn if no requirements specified 2023-09-27 14:47:00 -04:00
inspect.go [COMPLIANCE] License changes (#12568) 2023-08-10 15:53:29 -07:00
inspect_test.go [COMPLIANCE] License changes (#12568) 2023-08-10 15:53:29 -07:00
meta.go [COMPLIANCE] License changes (#12568) 2023-08-10 15:53:29 -07:00
plugin.go feat: add http datasource (#11658) 2022-05-17 19:26:34 +02:00
plugins.go [COMPLIANCE] License changes (#12568) 2023-08-10 15:53:29 -07:00
plugins_install.go packer: remove implicit required plugins 2023-08-17 16:51:49 -04:00
plugins_install_test.go [COMPLIANCE] License changes (#12568) 2023-08-10 15:53:29 -07:00
plugins_installed.go packer: remove implicit required plugins 2023-08-17 16:51:49 -04:00
plugins_remove.go packer: remove implicit required plugins 2023-08-17 16:51:49 -04:00
plugins_remove_test.go [COMPLIANCE] License changes (#12568) 2023-08-10 15:53:29 -07:00
plugins_required.go [COMPLIANCE] License changes (#12568) 2023-08-10 15:53:29 -07:00
signal.go [COMPLIANCE] License changes (#12568) 2023-08-10 15:53:29 -07:00
test_utils.go [COMPLIANCE] License changes (#12568) 2023-08-10 15:53:29 -07:00
utils.go [COMPLIANCE] License changes (#12568) 2023-08-10 15:53:29 -07:00
utils_test.go chore: remove refs to deprecated io/ioutil 2023-09-26 11:13:31 -04:00
validate.go [COMPLIANCE] License changes (#12568) 2023-08-10 15:53:29 -07:00
validate_test.go [COMPLIANCE] License changes (#12568) 2023-08-10 15:53:29 -07:00
vendored_plugins.go [COMPLIANCE] License changes (#12568) 2023-08-10 15:53:29 -07:00
version.go [COMPLIANCE] License changes (#12568) 2023-08-10 15:53:29 -07:00
version_test.go [COMPLIANCE] License changes (#12568) 2023-08-10 15:53:29 -07:00