This repository was archived by the owner on Apr 27, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfunc_ctl.sh
More file actions
executable file
·52 lines (49 loc) · 1.46 KB
/
func_ctl.sh
File metadata and controls
executable file
·52 lines (49 loc) · 1.46 KB
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
#!/bin/bash
#python3 -m venv venv
source venv/bin/activate
#func init mikesfunc1
cd mikesfunc1
# Possible parameters
case "$1" in
new)
func new
deactivate
;;
start)
func host start
deactivate
;;
edit)
;;
list)
func azure functionapp list-functions mikesfunc1 --show-keys
;;
docs)
cd ..
wget https://github.com/Azure/azure-functions-python-worker/raw/dev/README.md -O README.in
echo "Source: [Azure/azure-functions-python-worker](https://github.com/Azure/azure-functions-python-worker)" > README.md
echo >> README.md
cat README.in >> README.md
rm README.in
wget https://raw.githubusercontent.com/MicrosoftDocs/azure-docs/master/articles/azure-functions/create-first-function-cli-python.md -O create-first-function-cli-python.in
echo "Source: [MicrosoftDocs/azure-docs](https://github.com/MicrosoftDocs/azure-docs/tree/master/articles/azure-functions)" > create-first-function-cli-python.md
echo >> create-first-function-cli-python.md
cat create-first-function-cli-python.in >> create-first-function-cli-python.md
rm create-first-function-cli-python.in
;;
test)
# update http test with context from azure functions python library
#wget https://github.com/Azure/azure-functions-python-library/raw/dev/tests/test_http_wsgi.py -O HttpTrigger/test_http_wsgi.py
python -m pytest
deactivate
;;
publish)
func azure functionapp publish mikesfunc1
deactivate
;;
*)
echo "Usage: $0 {start|edit|publish|new|test|docs|list}"
exit 1
;;
esac
exit 0