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 templates listing to smithy init command #1825

Merged
merged 1 commit into from
Jun 19, 2023

Conversation

AndrewFossAWS
Copy link
Contributor

@AndrewFossAWS AndrewFossAWS commented Jun 15, 2023

Description of changes:

  • Add templates listing to smithy init command
  • Allow copying templates to nested output directory in smithy init command

Testing:

  • smithy init --template quickstart-cli --output hello/world
  • smithy init --template quickstart-cli --output ./hello/world
  • smithy init --template quickstart-cli --output /Volume/workspace/hello/world
  • smithy init --list

Output:

NAME                           DOCUMENTATION
----------------------------   ----------------------------------------------------------------------------------
custom-annotation-trait        Gradle project for creating a package for a custom annotation trait.              
quickstart-cli                 Smithy Quickstart example weather service using the Smithy CLI.                   
custom-string-trait            Gradle project for creating a package for a custom string trait.                  
common-shapes                  Common package for sharing shapes between multiple Smithy projects.               
custom-linter                  Gradle project for creating a package for a custom Smithy linter                  
filter-internal-projection     Projection that filters out internal shapes and traits.                           
codegen-starter                Directed-codegen plugin that generates simple POJOs.                              
common-linting-configuration   Common package for sharing linting configuration between multiple Smithy projects.
custom-validator               Gradle project for creating a package for a custom Smithy validator.              
custom-structure-trait         Gradle project for creating a package for a custom structure trait.               
quickstart-gradle              Smithy Quickstart example weather service using the Smithy-Gradle-Plugin.         
openapi-conversion             Generates an OpenAPI spec from a Smithy model
  • smithy init -t invalid-template
Invalid template `invalid-template`. `Smithy-Examples` provides the following templates:

NAME                           DOCUMENTATION
----------------------------   ----------------------------------------------------------------------------------
custom-annotation-trait        Gradle project for creating a package for a custom annotation trait.              
quickstart-cli                 Smithy Quickstart example weather service using the Smithy CLI.                   
custom-string-trait            Gradle project for creating a package for a custom string trait.                  
common-shapes                  Common package for sharing shapes between multiple Smithy projects.               
custom-linter                  Gradle project for creating a package for a custom Smithy linter                  
filter-internal-projection     Projection that filters out internal shapes and traits.                           
codegen-starter                Directed-codegen plugin that generates simple POJOs.                              
common-linting-configuration   Common package for sharing linting configuration between multiple Smithy projects.
custom-validator               Gradle project for creating a package for a custom Smithy validator.              
custom-structure-trait         Gradle project for creating a package for a custom structure trait.               
quickstart-gradle              Smithy Quickstart example weather service using the Smithy-Gradle-Plugin.         
openapi-conversion             Generates an OpenAPI spec from a Smithy model 

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 15, 2023 22:39
@AndrewFossAWS AndrewFossAWS changed the title Allow copying templates to nested output directory in smithy init command Add templates listing to smithy init command Jun 16, 2023
@AndrewFossAWS AndrewFossAWS force-pushed the init branch 4 times, most recently from 72aef0d to 04d9ce5 Compare June 17, 2023 00:13
@AndrewFossAWS AndrewFossAWS merged commit 72dcffb into smithy-lang:main Jun 19, 2023
@AndrewFossAWS AndrewFossAWS deleted the init branch September 21, 2023 21:46
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.

2 participants