Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Issue #63] Implement cg init command #77

Merged
merged 6 commits into from
Feb 10, 2025
Merged

Conversation

widal001
Copy link
Collaborator

Summary

Implements the cg init command for the CLI.

Changes proposed

What was added, updated, or removed in this PR.

  • Implements the cg init command to call tsp init under the hood
  • Updates the --list flag to read template options directly from the hosted template JSON
  • Removes --dir as an option for the command since tsp init doesn't currently support custom output directories

Context for reviewers

Testing instructions, background context, more in-depth details of the implementation, and anything else you'd like to call out or ask reviewers. Explain how the changes were verified.

The easiest way to test this is:

  1. Checkout the PR locally
  2. Run npm build && npm link
  3. In a separate directory (empty) run npm link @common-grants/cli
  4. Create a test directory and change directory into it: mkdir test-default && cd test-default
  5. Run cg init --list
  6. Run cg init --template default-api and complete the interactive setup

Additional information

Screenshots, GIF demos, code examples or output to help show the changes working as expected.

Screenshot 2025-02-10 at 1 38 03 AM Screenshot 2025-02-10 at 1 37 49 AM

@widal001 widal001 merged commit 28a3c8e into main Feb 10, 2025
2 checks passed
@widal001 widal001 deleted the issue-63-init-command branch February 10, 2025 14:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[CLI] Create cg init command
1 participant