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

polywrap create template command #1529

Merged
merged 16 commits into from
Mar 2, 2023
Merged

Conversation

krisbitney
Copy link
Contributor

@krisbitney krisbitney commented Feb 8, 2023

This PR adds the template command to the CLI's polywrap create. The template command lets users provide a url and downloads the template for them.

As described in #768 , the initial implementation only supports .git URLs. I implemented it with the assumption that additional URL formats will be added now or in the future.

Closes #768

@krisbitney krisbitney marked this pull request as draft February 8, 2023 14:53
@krisbitney krisbitney marked this pull request as ready for review February 9, 2023 06:46
Copy link
Contributor

@dOrgJelli dOrgJelli left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is super clean @krisbitney, amazing & quick work. Only thing I'd like to be different is the treatment of the cache directory. Let's quickly make that more uniform and use a user-level cache within the operating system. That way other functionality can make use of it in the future too! (ex: import caching, etc)

…plate-from-url

# Conflicts:
#	packages/cli/src/__tests__/e2e/create.spec.ts
#	packages/cli/src/commands/create.ts
#	packages/cli/src/lib/project/templates/index.ts
#	yarn.lock
Copy link
Contributor

@dOrgJelli dOrgJelli left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Amazing 👏

Copy link
Contributor

@pileks pileks left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚢

@krisbitney krisbitney merged commit dc85b44 into origin-dev Mar 2, 2023
@dOrgJelli dOrgJelli deleted the kris/create-template-from-url branch April 10, 2023 16:57
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 Command: --template URL Option
4 participants