packer-cn/packer
Ash Berlin 242ed49ecb Use bufio.Scanner in BasicUi.Ask so we can read whole lines
The previous version used fmt.Fscanln which sounds like it should scan
for a whole line, but it actually errors if there is more than a single
word/token given. You can see this here https://play.golang.org/p/1RYXdtPSbk

And looking at the only usage of this function in core it won't break
anything to change it to actually return whole lines instead.

    line, err := ui.Ask("[c] Clean up and exit, [a] abort without cleanup, or [r] retry step (build may fail even if retry succeeds)?")

Closes #4474
2017-01-29 14:10:14 +00:00
..
plugin run gofmt 2016-11-01 14:08:04 -07:00
rpc allow ssh communicator's Upload fastpath to execute 2016-09-28 23:22:04 -07:00
test-fixtures packer: validate minimum version [GH-2310] 2015-06-29 11:49:45 -07:00
artifact.go
artifact_mock.go
artifact_test.go
build.go Allow upper case input to -on-error=ask 2016-09-16 12:15:00 +00:00
build_test.go run gofmt 2016-11-01 14:08:04 -07:00
builder.go
builder_mock.go packer: HookProvision errors if no communicator 2015-06-15 10:26:46 -07:00
builder_test.go
cache.go
cache_test.go
communicator.go parallels/vmware: don't wait for shutdown command. 2017-01-20 01:44:18 -08:00
communicator_mock.go file provisioner improvements 2016-02-12 11:48:28 -08:00
communicator_mock_test.go
communicator_test.go
config_file.go Use alternate temp directories for docker 2015-10-20 11:34:14 -07:00
config_file_unix.go Move ConfigFile() and ConfigDir() from package main to packer 2015-10-16 17:32:36 -07:00
config_file_windows.go Move ConfigFile() and ConfigDir() from package main to packer 2015-10-16 17:32:36 -07:00
core.go run gofmt 2016-11-01 14:08:04 -07:00
core_test.go packer: validate minimum version [GH-2310] 2015-06-29 11:49:45 -07:00
hook.go
hook_mock.go
hook_test.go run gofmt 2016-11-01 14:08:04 -07:00
multi_error.go
multi_error_test.go
packer_test.go
post_processor.go
post_processor_mock.go
provisioner.go packer: HookProvision errors if no communicator 2015-06-15 10:26:46 -07:00
provisioner_mock.go
provisioner_test.go packer: HookProvision errors if no communicator 2015-06-15 10:26:46 -07:00
testing.go
ui.go Use bufio.Scanner in BasicUi.Ask so we can read whole lines 2017-01-29 14:10:14 +00:00
ui_test.go Use bufio.Scanner in BasicUi.Ask so we can read whole lines 2017-01-29 14:10:14 +00:00