Skip to content

Commit

Permalink
Change echo to print in green colour
Browse files Browse the repository at this point in the history
  • Loading branch information
kumaranvpl committed Nov 8, 2024
1 parent 8f03219 commit 7e9fea2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions scripts/test_cookiecutter.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,17 @@
# The cookiecutter replay file is used to provide the default values for the cookiecutter template

# Accept two arguments: app-type and python-version
echo "Generating project using cookiecutter template with app-type: $1 and python-version: $2"
echo -e "\033[32mGenerating project using cookiecutter template with app-type: $1 and python-version: $2\033[0m"
cookiecutter -f --replay-file ./cookiecutter_replay/$1_$2.json --output-dir generated/ ./

# Install generated project's dependencies
echo "Installing dependencies for the generated project"
echo -e "\033[32mInstalling dependencies for the generated project\033[0m"
cd generated/my_fastagency_app && pip install -e .[dev] && cd ../../

# Initialize git in the generated project(needed for pre-commit)
echo "Initializing git in the generated project"
echo -e "\033[32mInitializing git in the generated project\033[0m"
cd generated/my_fastagency_app && git init && git add . && cd ../../

# Run pre-commit
echo "Running pre-commit"
echo -e "\033[32mRunning pre-commit\033[0m"
cd generated/my_fastagency_app && pre-commit run --show-diff-on-failure --color=always --all-files && cd ../../

0 comments on commit 7e9fea2

Please sign in to comment.