#!/bin/bash help() { echo "Usage: web_test_generator.sh " } run() { echo " #[actix_rt::test] async fn $1_web_$2_ui_works() { let routes = RoutesRepository::default(); page_test_runner( &routes.$2).await; }" } if [ -z $1 ] then help elif [ -z $2 ] then help else run $1 $2 | wl-copy run $1 $2 fi