Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
microsoft
GitHub Repository: microsoft/CyberBattleSim
Path: blob/main/createstubs.sh
597 views
1
#!/bin/bash
2
3
# Copyright (c) Microsoft Corporation.
4
# Licensed under the MIT License.
5
6
set -e
7
8
pushd "$(dirname "$0")"
9
10
echo "$(tput setaf 2)Creating type stubs$(tput sgr0)"
11
createstub() {
12
local name=$1
13
if [ ! -d "typings/$name" ]; then
14
pyright --createstub $name
15
else
16
echo stub $name already created
17
fi
18
}
19
param=$1
20
if [[ $param == "--recreate" ]]; then
21
echo 'Deleting typing directory'
22
rm -Rf typings/
23
fi
24
25
echo 'Creating stubs'
26
27
mkdir -p typings/
28
29
createstub pandas
30
createstub plotly
31
createstub asciichartpy
32
createstub boolean
33
34
35
echo 'Typing stub generation completed'
36
37
popd
38
39