forked from flyteorg/flyte
-
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.
Added non zero return code on error and AlreadyExists as success cond…
…ition (flyteorg#71) * Added non zero return code on error and also made AlreadyExists as success condition Signed-off-by: Prafulla Mahindrakar <[email protected]> * Added coverage Signed-off-by: Prafulla Mahindrakar <[email protected]>
- Loading branch information
1 parent
5e7db6d
commit a3599fc
Showing
5 changed files
with
109 additions
and
15 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
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
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
Binary file not shown.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,16 @@ | ||
package main | ||
|
||
import ( | ||
"fmt" | ||
"context" | ||
"os" | ||
|
||
"github.com/flyteorg/flytectl/cmd" | ||
"github.com/flyteorg/flytestdlib/logger" | ||
) | ||
|
||
func main() { | ||
if err := cmd.ExecuteCmd(); err != nil { | ||
fmt.Printf("error: %v\n", err) | ||
logger.Error(context.TODO(), err) | ||
os.Exit(1) | ||
} | ||
} |