File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 55 "net/url"
66 "os"
77 "strings"
8+ "time"
89
910 "github.com/deis/deis/pkg/prettyprint"
1011
@@ -195,7 +196,7 @@ func AppDestroy(appID, confirm string) error {
195196 ! This command will destroy the application: %s
196197 ! To proceed, type "%s" or re-run this command with --confirm=%s
197198
198- >` , appID , appID , appID )
199+ > ` , appID , appID , appID )
199200
200201 fmt .Scanln (& confirm )
201202 }
@@ -204,12 +205,15 @@ func AppDestroy(appID, confirm string) error {
204205 return fmt .Errorf ("App %s does not match confirm %s, aborting." , appID , confirm )
205206 }
206207
207- fmt .Printf ("Destroying %s..." , appID )
208+ startTime := time .Now ()
209+ fmt .Printf ("Destroying %s...\n " , appID )
208210
209211 if err = apps .Delete (c , appID ); err != nil {
210212 return err
211213 }
212214
215+ fmt .Printf ("done in %ds\n " , int (time .Since (startTime ).Seconds ()))
216+
213217 if gitSession {
214218 return c .DeleteRemote (appID )
215219 }
Original file line number Diff line number Diff line change @@ -37,8 +37,6 @@ func (c Client) CreateRemote(remote, appID string) error {
3737func (c Client ) DeleteRemote (appID string ) error {
3838 name , err := remoteNameFromAppID (appID )
3939
40- fmt .Printf ("'%s'\n " , name )
41-
4240 if err != nil {
4341 return err
4442 }
You can’t perform that action at this time.
0 commit comments