Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 5 additions & 9 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -90,13 +90,10 @@ check-tools:
@echo ""
@echo "πŸ’‘ Install missing tools using the links above"

github-create:
@echo "πŸ”— Creating GitHub repository..."
@if ! command -v gh &> /dev/null; then \
echo "❌ GitHub CLI (gh) not found. Install it from: https://cli.github.com/"; \
echo " Or run: make check-tools"; \
exit 1; \
fi
.check-gh:
@command -v gh &> /dev/null || (echo "❌ GitHub CLI (gh) not found. Install it from: https://cli.github.com/" && exit 1)

github-create: .check-gh
@if [ ! -d .git ]; then \
echo "πŸ“ Initializing git repository..."; \
git init; \
Expand All @@ -109,8 +106,7 @@ github-create:
@echo ""
@echo "Next: Run 'make github-push' to push your code"

github-push:
@echo "πŸ“€ Pushing to GitHub..."
github-push: .check-gh
@if ! git remote get-url origin &> /dev/null; then \
echo "❌ No remote 'origin' found. Run 'make github-create' first"; \
exit 1; \
Expand Down