mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-05-04 15:25:00 -04:00
Activity indicator for init command (#207)
* first version of spinner - implemented class with basic method - covered with dummy test - integrated with init command * Style and license remarks * fixed review remarks * fixed typo + integration of spinner with terminate command * integration of spinner with create command
This commit is contained in:
parent
acdcb535c0
commit
abe40de3e5
5 changed files with 175 additions and 4 deletions
|
@ -47,9 +47,11 @@ func terminate(cmd *cobra.Command, terminator cloudTerminator, fileHandler file.
|
|||
return fmt.Errorf("reading Constellation state: %w", err)
|
||||
}
|
||||
|
||||
cmd.Println("Terminating ...")
|
||||
|
||||
if err := terminator.Terminate(cmd.Context(), stat); err != nil {
|
||||
spinner := newSpinner(cmd, "Terminating ", true)
|
||||
spinner.Start()
|
||||
err := terminator.Terminate(cmd.Context(), stat)
|
||||
spinner.Stop()
|
||||
if err != nil {
|
||||
return fmt.Errorf("terminating Constellation cluster: %w", err)
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue