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

Add Smithy CLI init command #1802

Merged
merged 1 commit into from
Jun 15, 2023
Merged

Conversation

AndrewFossAWS
Copy link
Contributor

@AndrewFossAWS AndrewFossAWS commented Jun 1, 2023

Description of changes:

  • Add Smithy CLI init command
    • smithy init -t quickstart-cli
    • smithy init -t quickstart-cli -o hello-world
    • smithy init --template quickstart-cli --output hello-world
    • smithy init -t quickstart-cli -o hello-world --url <custom template repository url>
  • Relies on Git to clone the necessary files i.e. smithy-templates.json and template files

Testing:

  1. ./gradlew :smithy-cli:runtime
  2. ./smithy/smithy-cli/build/image/smithy-cli-darwin-x86_64/bin/smithy init --template quickstart-cli --output hello-world --url ssh://git.amazon.com/pkg/Smithy-Examples
  3. Verified the hello-world directory is created and contains content from quickstart-cli template

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@AndrewFossAWS AndrewFossAWS requested a review from a team as a code owner June 1, 2023 22:36
@AndrewFossAWS AndrewFossAWS force-pushed the init branch 3 times, most recently from d858cc0 to 8a35bf2 Compare June 5, 2023 18:07
Copy link
Member

@mtdowling mtdowling left a comment

Choose a reason for hiding this comment

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

Can you add some integration tests?

@AndrewFossAWS AndrewFossAWS force-pushed the init branch 9 times, most recently from 00c6c24 to d467591 Compare June 6, 2023 16:39
@AndrewFossAWS AndrewFossAWS merged commit b69aeb5 into smithy-lang:main Jun 15, 2023
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.

3 participants