Progress bar (#44)
* Testing out progress indicators * Fix sum file * Add basic progress indicator * Clear up progress indicator initialization * Update dependencies
This commit is contained in:
@@ -1,9 +1,7 @@
|
||||
package cmd
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
gcp "speedrun/cloud"
|
||||
"speedrun/colors"
|
||||
"speedrun/marathon"
|
||||
"strings"
|
||||
"time"
|
||||
@@ -74,7 +72,6 @@ func run(cmd *cobra.Command, args []string) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
log.Info(fmt.Sprintf("Running [%s]", colors.Blue(command)))
|
||||
m := marathon.New(command, timeout, concurrency)
|
||||
instanceDict := map[string]string{}
|
||||
for _, instance := range instances {
|
||||
@@ -84,6 +81,7 @@ func run(cmd *cobra.Command, args []string) error {
|
||||
instanceDict[instance.NetworkInterfaces[0].AccessConfigs[0].NatIP] = instance.Name
|
||||
}
|
||||
}
|
||||
|
||||
err = m.Run(instanceDict, privateKeyPath, ignoreFingerprint)
|
||||
if err != nil {
|
||||
log.Fatal(err.Error())
|
||||
|
||||
Reference in New Issue
Block a user