Skip to content

Commit

Permalink
Fusion Hack (#7740)
Browse files Browse the repository at this point in the history
* fushion hack script draft

* Add description each script

* Change exec

* Fix description

* Fix formatting errors

* Remove release

* Change source to .
  • Loading branch information
ctmphuongg committed Mar 12, 2024
1 parent e886832 commit bbb9051
Showing 1 changed file with 54 additions and 0 deletions.
54 changes: 54 additions & 0 deletions hack/run.sh
@@ -0,0 +1,54 @@
#!/usr/bin/env bash

set -e

ROOT_DIR=$(dirname $0)/..

action="$1"

function usage() {
cmd="$1"

echo ""
echo "Usage for more information read DEVELOPMENT.md"
echo "$cmd <command>"
echo ""
echo "command:"
echo " install Install Knative components for local dev"
echo " e2e-debug <test-name> <test-dir> Quick debug"
echo " update-cert-manager Update Cert manager"
echo " generate-yamls <repo-root-dir> <output-file> Generate all repo yamls "
echo " update-reference-docs Update reference docs"
echo " teardown Teardown installed components for local dev"
echo " update-checksums Update checksums"
echo " update-codegen Update codegen"
echo " update-deps Update deps"
echo " verify-codegen Verify codegen"
echo ""
}

if [[ "${action}" == "install" ]]; then
./"${ROOT_DIR}"/hack/install.sh
elif [[ "${action}" == "update-cert-manager" ]]; then
./"${ROOT_DIR}"/hack/update-cert-manager.sh "$2" "$3"
elif [[ "${action}" == "e2e-debug" ]]; then
./"${ROOT_DIR}"/hack/e2e-debug.sh "$2" "$3"
elif [[ "${action}" == "generate-yamls" ]]; then
./"${ROOT_DIR}"/hack/generate-yamls.sh "$2" "$3"
elif [[ "${action}" == "update-reference-docs" ]]; then
./"${ROOT_DIR}"/hack/update-reference-docs.sh
elif [[ "${action}" == "teardown" ]]; then
./"${ROOT_DIR}"/hack/teardown.sh
elif [[ "${action}" == "update-checksums" ]]; then
./"${ROOT_DIR}"/hack/update-checksums.sh
elif [[ "${action}" == "update-codegen" ]]; then
./"${ROOT_DIR}"/hack/update-codegen.sh
elif [[ "${action}" == "update-deps" ]]; then
./"${ROOT_DIR}"/hack/update-deps.sh
elif [[ "${action}" == "verify-codegen" ]]; then
./"${ROOT_DIR}"/hack/verify-codegen.sh
else
echo "Unrecognized action ${action}"
usage "$0"
exit 1
fi

0 comments on commit bbb9051

Please sign in to comment.