начало 2906

This commit is contained in:
2026-03-24 22:29:36 +03:00
parent e6107b6dca
commit 1e973f5a9e
4 changed files with 49 additions and 0 deletions

22
create_project.sh Normal file
View File

@@ -0,0 +1,22 @@
#!/usr/bin/env bash
set -euo pipefail
if [[ $# -lt 1 ]]; then
echo "Usage: $0 \"Project Name\""
exit 1
fi
project_name="$1"
if [[ -z "$project_name" ]]; then
echo "Project name cannot be empty"
exit 1
fi
if [[ -d "$project_name" ]]; then
echo "Directory already exists: $project_name"
exit 1
fi
dotnet new console -n "$project_name"
dotnet sln add "$project_name"