Skip to content

Commit 492f529

Browse files
committed
LPD-67897 lec.sh: adds version command
1 parent 07a22b9 commit 492f529

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

scripts/cli/lec.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ _printHelpAndExit() {
8888
clean Stop a Composer project and remove Docker volumes
8989
remove Completely tear down and remove a Composer project
9090
update [--unstable] Check for updates to Composer and lec. The "--unstable" flag updates to latest master branch.
91+
version Prints the current version of lec
9192
9293
importDLStructure <sourceDir> Import a Document Library (file structure only, no content) into configs/common/data/document_library
9394
@@ -611,6 +612,9 @@ cmd_update() {
611612

612613
_print_success "Updated to newer version ${C_BLUE}${latest_tag}${C_NC}"
613614
}
615+
cmd_version() {
616+
_git describe --tags --abbrev=0 2>/dev/null
617+
}
614618

615619
#
616620
# GO

0 commit comments

Comments
 (0)