Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fusion Hack #7740

Merged
merged 7 commits into from Mar 12, 2024
Merged
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
57 changes: 57 additions & 0 deletions hack/run.sh
@@ -0,0 +1,57 @@
#!/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 " release Release new version"
ctmphuongg marked this conversation as resolved.
Show resolved Hide resolved
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
source "${ROOT_DIR}"/hack/install.sh
elif [[ "${action}" == "update-cert-manager" ]]; then
source "${ROOT_DIR}"/hack/update-cert-manager.sh "$2" "$3"
elif [[ "${action}" == "e2e-debug" ]]; then
source "${ROOT_DIR}"/hack/e2e-debug.sh "$2" "$3"
elif [[ "${action}" == "generate-yamls" ]]; then
source "${ROOT_DIR}"/hack/generate-yamls.sh "$2" "$3"
elif [[ "${action}" == "update-reference-docs" ]]; then
source "${ROOT_DIR}"/hack/update-reference-docs.sh
elif [[ "${action}" == "release" ]]; then
Leo6Leo marked this conversation as resolved.
Show resolved Hide resolved
source "${ROOT_DIR}"/hack/release.sh
elif [[ "${action}" == "teardown" ]]; then
source "${ROOT_DIR}"/hack/teardown.sh
elif [[ "${action}" == "update-checksums" ]]; then
source "${ROOT_DIR}"/hack/update-checksums.sh
elif [[ "${action}" == "update-codegen" ]]; then
source "${ROOT_DIR}"/hack/update-codegen.sh
elif [[ "${action}" == "update-deps" ]]; then
source "${ROOT_DIR}"/hack/update-deps.sh
elif [[ "${action}" == "verify-codegen" ]]; then
source "${ROOT_DIR}"/hack/verify-codegen.sh
else
echo "Unrecognized action ${action}"
usage "$0"
exit 1
fi