Skip to content

Commit

Permalink
update version
Browse files Browse the repository at this point in the history
  • Loading branch information
m-Bilal committed Sep 26, 2024
1 parent fea7e03 commit 39ce390
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ supportedEnvironmentVariables:
commands:
update:
type: Dockerized
dockerImage: ghcr.io/hasura/ndc-open-api-lambda:v0.1.5
dockerImage: ghcr.io/hasura/ndc-open-api-lambda:v0.2.0
commandArgs: [ "update" ]
cliPlugin:
type: Docker
dockerImage: ghcr.io/hasura/ndc-open-api-lambda:v0.1.5
dockerImage: ghcr.io/hasura/ndc-open-api-lambda:v0.2.0
dockerComposeWatch:
# Rebuild the container if a new package restore is required because package[-lock].json changed
- path: package.json
Expand Down
10 changes: 5 additions & 5 deletions docs/documentation.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,19 +41,19 @@ The Docker Container will output the generated files at `/etc/connector`. Please

```
# get command documentation/help
docker run --rm ghcr.io/hasura/ndc-open-api-lambda:v0.1.5 update -h
docker run --rm ghcr.io/hasura/ndc-open-api-lambda:v0.2.0 update -h
# run the code generation (using env vars)
docker run --rm -v ./:/etc/connector/ -e NDC_OAS_DOCUMENT_URI=${url to open API document} ghcr.io/hasura/ndc-open-api-lambda:v0.1.5 update
docker run --rm -v ./:/etc/connector/ -e NDC_OAS_DOCUMENT_URI=${url to open API document} ghcr.io/hasura/ndc-open-api-lambda:v0.2.0 update
# run the code generation (using CLI flags)
docker run --rm -v ./:/etc/connector/ ghcr.io/hasura/ndc-open-api-lambda:v0.1.5 update --open-api ${url to open API document}
docker run --rm -v ./:/etc/connector/ ghcr.io/hasura/ndc-open-api-lambda:v0.2.0 update --open-api ${url to open API document}
# with baseUrl (using env vars)
docker run --rm -v ./:/etc/connector/ -e NDC_OAS_DOCUMENT_URI=${url to open API document} -e NDC_OAS_BASE_URL=http://demoapi.com/ ghcr.io/hasura/ndc-open-api-lambda:v0.1.5 update
docker run --rm -v ./:/etc/connector/ -e NDC_OAS_DOCUMENT_URI=${url to open API document} -e NDC_OAS_BASE_URL=http://demoapi.com/ ghcr.io/hasura/ndc-open-api-lambda:v0.2.0 update
# with baseUrl (using CLI flags)
docker run --rm -v ./:/etc/connector/ ghcr.io/hasura/ndc-open-api-lambda:v0.1.5 update --open-api ${url to open API document} --base-url http://demoapi.com/
docker run --rm -v ./:/etc/connector/ ghcr.io/hasura/ndc-open-api-lambda:v0.2.0 update --open-api ${url to open API document} --base-url http://demoapi.com/
```

## Build and Run
Expand Down
2 changes: 1 addition & 1 deletion src/cli/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import * as updateCmd from "./update";
import { exec, execSync } from "child_process";

export const program = new Command()
.version("0.1.5")
.version("0.2.0")
.description("OAS Connector CLI")
// .addCommand(initCmd.cmd) TODO: Enable when required by the CLI spec
.addCommand(updateCmd.cmd)
Expand Down

0 comments on commit 39ce390

Please sign in to comment.