[Proposal] dapr subscribe command
メンテナーはふだん 6 日以内に返信
まだ誰も着手していません。
評価
調査の方向性
まず既存の dapr publish コマンドを見つけ、その CLI エントリポイントとフラグ処理を追跡します。提案されている subscribe のフラグと例をそのコマンドと比較します。完了条件は、dapr subscribe が指定された app、pub/sub、topic、routes、metadata、output、response、socket の各オプションを通じて購読し、要求されたデータを出力できることです。
索引モデルが issue の本文から書いたものです。
説明
Describe the proposal
This proposal is to add a dapr subscribe command, a counterpart for the existing dapr publish command. This will be useful in development scenarios which allows users to subscribe to a pubsub/topic/route, and print the data on STDOUT.
Example usage:
# Subscribe to sample topic in target pubsub via subscriber app without cloud event
dapr subscribe --subscribe-app-id myapp --pubsub target --topic sample --metadata '{"rawPayload":"true"}'
# Subscribe to sample topic in target pubsub via subscriber app with custom routes
dapr subscribe --subscribe-app-id myapp --pubsub target --topic sample --routes '{"rules": [{"match": "event.type == \'widget\'", "path": "/widgets"}], "default": "/products"}'
Proposed flags:
| Short | Long | Type | Usage |
|---|---|---|---|
| -m | --metadata | string | The JSON serialized publish metadata (optional) |
| -a | --subscribe-app-id | string | The ID of the subscriber app |
| -p | --pubsub | string | The name of the pub/sub component |
| -t | --topic | string | The topic to be published to |
| -r | --routes | string | The JSON serialized routing configuration (optional) |
| -u | --unix-domain-socket | string | Path to a unix domain socket dir. If specified, Dapr API servers will use Unix Domain Sockets (optional) |
| -o | --output | string | Different levels of output - data (default), time, metadata, all (optional) |
| --response | string | Response from the app - success (default), retry, drop (optional) |
Future scope can also include a --filter option to selectively show data.
Release Note
RELEASE NOTE: ADD Support for dapr subscribe
- 主要言語
- Go
- スター
- 353
- フォーク
- 220
- 平均マージ
- 6日 16時間
- マージ済み PR(30日)
- 1
環境構築
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
dapr/cli のほかの issue
-
kind/bug
難易度 3/5 1〜2日 初心者へのやさしさ 68/100
dapr/cli#1700 · コメント 1 件 · リアクション 1 件 ·
メンテナーはふだん 6 日以内に返信
-
good first issue kind/proposal
難易度 5/5 1週間以上 初心者へのやさしさ 42/100
メンテナーはふだん 6 日以内に返信
-
good first issue kind/proposal
難易度 3/5 1〜2日 初心者へのやさしさ 35/100
メンテナーはふだん 6 日以内に返信
-
Docs (Automation) - Dapr CLI再び着手できるかも @mikeee が 559 日前に担当しましたが、オープン中のプルリクエストはありません。 オープンP1 pinned
dapr/cli#1507 · コメント 3 件 · 担当者 1 名 ·
メンテナーはふだん 6 日以内に返信
-
Update the CLI install script release source再び着手できるかも @mikeee が 733 日前に担当しましたが、オープン中のプルリクエストはありません。 オープンkind/bug pinned
dapr/cli#1454 · コメント 8 件 · 担当者 1 名 ·
メンテナーはふだん 6 日以内に返信
似ている issue
-
agentic-workflows
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
メンテナーはふだん 1 日以内に返信
-
priority/4/normal status/needs-triage type/bug/unconfirmed
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
authelia/authelia#13292 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
blinklabs-io/actions#138 ·
メンテナーはふだん 1 日以内に返信
-
[UI] AlbumDetails collapses multi-genre list to single primary genre on viewports < lg breakpointオープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信