From 240f3f5aae99f1418b5fa0355d6be2a5e48ce182 Mon Sep 17 00:00:00 2001 From: Deepak Date: Tue, 29 Dec 2020 10:10:02 -0600 Subject: [PATCH] Add run function and make test robust and return correctly --- do.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/do.sh b/do.sh index 712f6ec..6bea739 100644 --- a/do.sh +++ b/do.sh @@ -12,9 +12,11 @@ build() { test() { echo "I am ${FUNCNAME[0]}ing" - _test - _lint - _vet + _lint && _vet && _test +} + +run() { + test && go run main.go } _test() {