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 temporal cli docs for nexus endpoints #3149

Merged
merged 11 commits into from
Oct 16, 2024
Merged

Conversation

prasek
Copy link
Contributor

@prasek prasek commented Oct 11, 2024

What does this PR do?

Adds temporal cli docs for nexus endpoints

Notes to reviewers

See related:

@prasek prasek requested a review from a team as a code owner October 11, 2024 00:28
Copy link
Member

@bergundy bergundy left a comment

Choose a reason for hiding this comment

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

Assuming this is all autogenerated and there's nothing critical to review.

Signed-off-by: Phil Prasek <[email protected]>
Signed-off-by: Phil Prasek <[email protected]>
@@ -846,8 +846,8 @@ Use the following options to change the behavior of this command.

Update an existing Nexus Endpoint on the Server.

An endpoint name is used in Workflow code to invoke Nexus operations.
The endpoint target may either be a Worker, in which case `--target-namespace` and
A Nexus Endpoint name is used in Workflow code to invoke Nexus Operations. The
Copy link
Contributor

Choose a reason for hiding this comment

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

Every sentence on one line - it helps when making comments and consistency across the docs repo.

Other than that, looks good to merge.

Signed-off-by: Phil Prasek <[email protected]>
@prasek
Copy link
Contributor Author

prasek commented Oct 16, 2024

Thanks @jsundai, updated per your suggestions.

Think we're good to go, pending the final review of temporalio/cli#693!

@jsundai jsundai merged commit e74a60c into main Oct 16, 2024
3 checks passed
@jsundai jsundai deleted the nexus-operator-cli-docs branch October 16, 2024 19:18
josh-berry pushed a commit to temporalio/cli that referenced this pull request Oct 16, 2024
## What was changed
- Updated `commands.yml` to address feedback on
  temporalio/documentation#3149 (comment)
- Intended for use with the following, but also is fine to merge
standalone
  - #691
  - #692

See this branch for [the combined
approach](https://github.com/prasek/temporal-cli/tree/cli-docs-gen-all)
with all PRs merged in.

## Why?
To create CLI docs for Nexus.

## Checklist
1. How was this tested:
- `go run ./temporalcli/internal/cmd/gen-docs `
- also tested with [the combined
appraoch](https://github.com/prasek/temporal-cli/tree/cli-docs-gen-all)
   - copied generated docs (or subset) to temporalio/documentation
   - `yarn start`
   - verified via http://localhost:3000/

Ran `go test ./...`

Tested locally with:
```
go run ./cmd/temporal operator nexus endpoint create --name myendpoint --target-namespace my-target-namespace --target-task-queue my-handler-task-queue --description '## Sales Services
Workflow'\''s to support Customer-to-Order generation.

## other
stuff
'
```

2. Any docs updates needed?
- overall docs gen needs more alignment with the existing docs, but that
  is out of scope for these Nexus changes
- will update temporalio/documentation#3149 with
  cherry picked generated content from [the combined
  approach](https://github.com/prasek/temporal-cli/tree/cli-docs-gen-all).

---------

Signed-off-by: Phil Prasek <[email protected]>
Signed-off-by: Josh Berry <[email protected]>
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.

4 participants