Commit graph

16 commits

Author SHA1 Message Date
Andrew Naylor
1a4af7a897 Ensure we don't blow up
If we're going to depend on the dispatch_group we should ensure we enter
before it could possibly be exited. In reality it should never happy as
`purchase.perform` does an XPC call but there's no harm in being
cautious.
2016-02-21 22:14:14 +00:00
Andrew Naylor
490c73c6ac Use a guard instead to make it tidier 2016-02-14 01:34:32 +00:00
Andrew Naylor
d80ad6e866 Add sign in functionality 2016-02-14 01:34:27 +00:00
Andrew Naylor
3e8f48ad32 Ensure the clearLine method works properly 2015-09-21 00:47:16 +01:00
Andrew Naylor
3ccfd93f80 Remove the need for casting 2015-09-21 00:00:05 +01:00
Andrew Naylor
111383fdb2 Don't show progress until we have a state 2015-09-20 23:10:46 +01:00
Andrew Naylor
de1d921ba3 Ensure we flush when the line is cleared 2015-09-20 23:03:06 +01:00
Andrew Naylor
44da5a3638 Switch to a guard 2015-09-20 22:58:58 +01:00
Andrew Naylor
dc935e0d15 Ensure we only display terminal codes in a tty 2015-09-20 19:10:43 +01:00
Andrew Naylor
f380bca601 Clear the line in case the progress bar was shown 2015-09-20 19:10:13 +01:00
Andrew Naylor
4bbd964c2e Update to Swift 2 2015-09-14 09:51:09 +01:00
Andrew Naylor
69828f6404 Write the error to stderr for ease-of-use 2015-09-04 00:38:54 +01:00
Andrew Naylor
9205b94155 Add a little more order to the download process 2015-09-04 00:13:47 +01:00
Andrew Naylor
41ceab2c3a Begin to refactor the download process 2015-08-25 02:45:54 +08:00
Andrew Naylor
83291f2fc6 Guard against not being signed in with an error 2015-08-25 02:45:27 +08:00
Andrew Naylor
4ebd0ebb17 Collect together the AppStore interfaces 2015-08-22 02:48:00 +08:00