storybook
1#!/bin/bash
2
3# This script takes a single text input and replaces 'list_item' with the input in a cargo run command
4
5# Check if an argument is provided
6if [ "$#" -ne 1 ]; then
7 echo "Usage: $0 <component_name>"
8 exit 1
9fi
10
11# Assign the argument to a variable
12COMPONENT_NAME="$1"
13
14# Run the cargo command with the provided component name
15cargo run -p storybook2 -- components/"$COMPONENT_NAME"