#!/bin/bash12# Copyright (c) Microsoft Corporation.3# Licensed under the MIT License.45set -e67pushd "$(dirname "$0")"89echo "$(tput setaf 2)Creating type stubs$(tput sgr0)"10createstub() {11local name=$112if [ ! -d "typings/$name" ]; then13pyright --createstub $name14else15echo stub $name already created16fi17}18param=$119if [[ $param == "--recreate" ]]; then20echo 'Deleting typing directory'21rm -Rf typings/22fi2324echo 'Creating stubs'2526mkdir -p typings/2728createstub pandas29createstub plotly30createstub asciichartpy31createstub boolean323334echo 'Typing stub generation completed'3536popd373839