Commit Graph

14 Commits

Author SHA1 Message Date
jrangelramos 1172a85c80
fix: control chars on progress listener for Windows OS (#498) 2021-08-31 11:01:55 -07:00
Matej Vasek 6fd42a421e
fix: use ascii chars in progress indicator on win (#459)
Signed-off-by: Matej Vasek <mvasek@redhat.com>
2021-08-05 08:46:52 -07:00
Luke Kingland afcde2d551
src: testable commands (#415)
* feat: client progress listener 'stopping' state

* src: testable commands

Restructures commands to accept a fn.Client constructor on command
instantiation.  This allows the concrete implementations, or entire
client to be mocked for testing.
Also some minor refacotring as necessary to shoehorn into the pattern.

* fix: increase default timeout to 120s for service creation

* chore: bump kind, knative and kubectl versions
2021-07-09 11:15:23 -04:00
Lance Ball 857b0fd19d
feat: add/improve spinner for build and deploy (#322)
This commit modifies the progress meter so that, by default there is no
step counter. It also modifies the responsibility for calling `Done()`,
making it the job of the command rather than the client. This is because
the client does not know how many commands will be executed and therefore
cannot know when the progress bar is done.

This commit also adds String() to the progress bar, and moves logging
responsibility out of the deployer itself and fully into the client.
Deployer#Deploy() now returns a DeploymentResult.

Fixes: https://github.com/boson-project/func/issues/296

Signed-off-by: Lance Ball <lball@redhat.com>
2021-05-03 14:25:19 -04:00
Luke K 89c09d9a78
fixup: remove unnecessary WithVerbose option from progressListener 2020-08-31 09:45:20 +09:00
Luke K 4918cc7eef
feat: cli usability enhancements and API simplification 2020-08-29 01:54:13 +09:00
Matej Vasek 4677b3452f
chore: add lint to GH actions CI 2020-07-29 17:47:08 +02:00
Luke K d4f092465c
pass in ticker channel 2020-05-29 13:57:38 +00:00
Luke K e89c94d837
nil out ticker on done, removing extra write 2020-05-29 13:43:29 +00:00
Luke K edbef9bcdc
cleanup control sequences 2020-05-29 13:35:07 +00:00
Luke K 3df0bbac77
remove progress bar race 2020-05-29 13:24:13 +00:00
Luke K a784445333
progress bar deferred done and cleanup 2020-05-29 03:03:22 +00:00
Luke K 5ec4ac644a
pass through verbose mode 2020-05-28 13:53:06 +00:00
Luke K 9671e5af74
progress indicator on create 2020-05-28 07:47:07 +00:00