Skip to content

A simple project to generate a smithy CLI executable that includes some base trait packages and openapi generation as runtime dependencies

License

Notifications You must be signed in to change notification settings

mellemahp/smithy-cli-executable

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

smithy-cli-executable

Simple repo to generate releases of a smithy-cli executable for use in bazel build rules in other projects. It basically just uses github actions and bazel to generate a convient zip file with all the jars inside.

For more info about the open-source smithy project go check out the main AWS Labs repo here or the docs.

This smithy executable also includes the following as runtime dependencies for convenience:

  • smithy-openapi
  • smithy-aws-apigateway-openapi
  • smithy-aws-traits

Using in bazel build rules

To use the smithy cli jar generated by this repository in bazel build rules add the following to your WORKSPACE file.

SMITHY_CLI_EXECUTABLE_TAG = "<TAG_NAME>"
SMITHY_CLI_SHA = "<SHA>"

http_jar(
    name = "smithy-cli",
    sha256 = SMITHY_CLI_SHA,
    url = "https://github.com/mellemahp/smithy-cli-executable/releases/download/%s/smithy_cli.jar" % SMITHY_CLI_EXECUTABLE_TAG,
)

You can then access the jar with @smithy-cli//jar

Running

To run the cli, just run java -jar smithy_cli.jar <CMDS>

About

A simple project to generate a smithy CLI executable that includes some base trait packages and openapi generation as runtime dependencies

Resources

License

Stars

Watchers

Forks

Packages

No packages published