Repository navigation
cli: add edgeToVertexes - #1325
justinhwang wants to merge 1 commit into
Conversation
Expose edgeToVertexes, added to the library in 4.6.0, as an h3 CLI subcommand. It takes a directed edge and prints its start and end vertexes, in the same formats as directedEdgeToCells. Closes uber#1324 Co-Authored-By: Claude Code <noreply@anthropic.com>
|
No actionable comments were generated in the recent review. WalkthroughThe H3 CLI adds and registers ChangesH3 CLI edge-to-vertex command
Estimated code review effort: 2 (Simple) | ~10 minutes Change: Feature Possibly related PRs
Suggested reviewers: Merge Risk:
|
Closes #1324.
Adds
edgeToVertexes(new in 4.6.0, #1272) as anh3CLI subcommand. It takes a directed edge and prints its start and end vertexes, with the samejsonandnewlineformats asdirectedEdgeToCells.The two vertexes are the endpoints that
directedEdgeToBoundaryreturns for the same edge, in the same order. An index that is not a valid directed edge givesError 6: Directed edge argument was not valid.Docs
The website section for
edgeToVertexescomes from #1323, which is not merged yet, so this PR does not changevertex.mdx. Its Shell tab can become:🤖 Generated with Claude Code