SEBA-580 Add bash completion;
Add Git Dirty to version;
Add config comamnd

Change-Id: I847dc309a41d74d80e427106bcc839b8db3f9a2c
diff --git a/Makefile b/Makefile
index 297c16b..c7ca017 100644
--- a/Makefile
+++ b/Makefile
@@ -4,6 +4,11 @@
 
 VERSION=$(shell cat $(GOPATH)/src/github.com/opencord/cordctl/VERSION)
 GITCOMMIT=$(shell git log --pretty=format:"%h" -n 1)
+ifeq ($(shell git ls-files --others --modified --exclude-standard 2>/dev/null | wc -l | sed -e 's/ //g'),0)
+GITDIRTY=false
+else
+GITDIRTY=true
+endif
 GOVERSION=$(shell go version 2>&1 | sed -E  's/.*(go[0-9]+\.[0-9]+\.[0-9]+).*/\1/g')
 OSTYPE=$(shell uname -s | tr A-Z a-z)
 OSARCH=$(shell uname -p | tr A-Z a-z)
@@ -12,10 +17,11 @@
 LDFLAGS=-ldflags \
 	'-X "github.com/opencord/cordctl/cli/version.Version=$(VERSION)"  \
 	 -X "github.com/opencord/cordctl/cli/version.GitCommit=$(GITCOMMIT)"  \
+	 -X "github.com/opencord/cordctl/cli/version.GitDirty=$(GITDIRTY)"  \
 	 -X "github.com/opencord/cordctl/cli/version.GoVersion=$(GOVERSION)"  \
 	 -X "github.com/opencord/cordctl/cli/version.Os=$(OSTYPE)" \
 	 -X "github.com/opencord/cordctl/cli/version.Arch=$(OSARCH)" \
-	 -X "github.com/opencord/cordctl/cli/version.BuildTime=$(BUILDTIME)"' \
+	 -X "github.com/opencord/cordctl/cli/version.BuildTime=$(BUILDTIME)"'
 
 help: