forked from temporalio/edu-101-java-code
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.bash_aliases
37 lines (29 loc) · 1.33 KB
/
.bash_aliases
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
alias workspace="cd ${GITPOD_REPO_ROOT}"
alias webui="gp preview $(gp url 8080)"
# Exercise 1 aliases
alias ex1="cd ${GITPOD_REPO_ROOT}/exercises/hello-workflow/practice"
alias ex1w="mvn compile exec:java -Dexec.mainClass='helloworkflow.HelloWorkflowWorker'"
alias ex1s="cd ${GITPOD_REPO_ROOT}/exercises/hello-workflow/solution"
# Exercise 2 aliases
alias ex2="cd ${GITPOD_REPO_ROOT}/exercises/hello-web-ui/"
# Exercise 3 aliases
alias ex3="cd ${GITPOD_REPO_ROOT}/exercises/farewell-workflow/practice"
alias ex3s="cd ${GITPOD_REPO_ROOT}/exercises/farewell-workflow/solution"
alias ex3m="mvn exec:java -Dexec.mainClass='farewellworkflow.Microservice'"
alias ex3w="mvn exec:java -Dexec.mainClass='farewellworkflow.GreetingWorker'"
ex3st() {
mvn exec:java -Dexec.mainClass="farewellworkflow.Starter" -Dexec.args="${1}"
}
# Exercise 4 aliases
alias ex4="cd ${GITPOD_REPO_ROOT}/exercises/finale-workflow"
alias ex4j="java -classpath java-activity-and-worker-1.1.jar io.temporal.training.PdfCertWorker"
alias ex4w="ex4 && cd go && go run worker/main.go"
ex4st() {
ex4
cd go
go run start/main.go "${1}"
}
export PATH="$PATH:/workspace/bin"
echo "temporal configured! try typing temporal -v"
echo "Your workspace is located at: ${GITPOD_REPO_ROOT}"
echo "Type the command workspace to return to the workspace directory at any time."