Skip to content

Commit

Permalink
Improved project-facet script.
Browse files Browse the repository at this point in the history
  • Loading branch information
renelink committed Aug 19, 2024
1 parent 09a664c commit d0f5d57
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion project-facet
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ function main(){
local cmd="$1"
local projectFacet="$2"

if [ -z "${cmd}" ] || [ -z "${projectFacet}" ]; then
usage
exit 1
fi

importGitUtils "${projectFacet}"

case "${cmd}" in
Expand All @@ -19,12 +24,20 @@ function main(){
onGitRootDir update "${projectFacet}"
;;
*)
echo "Usage: $0 {install|update}"
usage
exit 1
;;
esac
}


function usage(){
echo "Usage: $0 {install|update} <project_facet>"
echo
echo -e " project_facet = The facet to apply to the current repository. E.g. gradle."
}


function update() {
local repo="${REPO_NAME}"
local projectFacet="$1"
Expand Down

0 comments on commit d0f5d57

Please sign in to comment.