This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Create component structure | |
function create-component() { | |
# If no argument is provided, prompt the user for a file name | |
if [[ -z "$1" ]]; then | |
echo -n "Enter the file name (without extension): " | |
read file_name | |
else | |
file_name="$1" | |
fi |