forked from suborbital/subo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a new Error and cleanup function for build command CreateRunnable…
…Cmd failures Based on the conv in suborbital#119, we want to delete the output dir of `sudo create runnable` for any failure that occurs in `CreateRunnableCmd`. `CreateRunnableError`s `Error` will also act as a cleanup function for these failures. atm, it's only deleting the output dir. Ideally, cobra.Command would have a error callback feature... maybe we'll get one for Xmas. spf13/cobra#914
- Loading branch information
Showing
1 changed file
with
20 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters