Skip to content

Commit

Permalink
dev: adding a command for creating a dev environment in codespaces fr…
Browse files Browse the repository at this point in the history
…om cli
  • Loading branch information
Bryce-Soghigian committed Feb 2, 2025
1 parent 906111f commit f03602a
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,20 @@ tidy: ## Recursively "go mod tidy" on all directories where go.mod exists
download: ## Recursively "go mod download" on all directories where go.mod exists
$(foreach dir,$(MOD_DIRS),cd $(dir) && go mod download $(newline))

.PHONY: help presubmit ci-test ci-non-test test deflake e2etests coverage verify vulncheck licenses codegen snapshot release toolchain tidy download

codespace:
@if [ -z "$(BRANCH)" ]; then \
echo "Usage: make codespace BRANCH=<branch_name>"; \
exit 1; \
fi
gh auth refresh -h github.com -s codespace
@echo "Creating new branch '$(BRANCH)' locally..."
git checkout -b $(BRANCH)
git push -u origin $(BRANCH)
@echo "Creating a GitHub Codespace for branch '$(BRANCH)' with maximum machine size..."
gh codespace create --branch $(BRANCH) --machine premiumLinux

.PHONY: help presubmit ci-test ci-non-test test deflake e2etests coverage verify vulncheck licenses codegen snapshot release toolchain tidy download codespace

define newline

Expand Down

0 comments on commit f03602a

Please sign in to comment.