-
Notifications
You must be signed in to change notification settings - Fork 45
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
kool deploy destroy + overall API consuming improvements and tests #276
Conversation
Codecov Report
@@ Coverage Diff @@
## master #276 +/- ##
==========================================
+ Coverage 88.47% 92.90% +4.43%
==========================================
Files 68 70 +2
Lines 2689 2736 +47
==========================================
+ Hits 2379 2542 +163
+ Misses 286 158 -128
- Partials 24 36 +12
Continue to review full report at Codecov.
|
With this, we are caught up with most of the |
} | ||
|
||
if err != nil { | ||
if errAPI, is := err.(*ErrAPI); is { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can't we use errors.Is(err, ErrApi)
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As I understand, errors.Is()
checks for value, and not type... since each new pointer of *ErrAPI
would have its own possible value, asserting the underlying type behind the interface seems like the way to go.
Description
Introducing new
kool deploy destroy
command that destroys the current set environment deployed on Kool Cloud.Notes