Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

[Proposal] dapr subscribe command

オープン
#1,127 コメント 4 件 リアクション 2 件 担当者 0 名 GitHub で見る

メンテナーはふだん 6 日以内に返信

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
25/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
go
領域
cli

調査の方向性

まず既存の dapr publish コマンドを見つけ、その CLI エントリポイントとフラグ処理を追跡します。提案されている subscribe のフラグと例をそのコマンドと比較します。完了条件は、dapr subscribe が指定された app、pub/sub、topic、routes、metadata、output、response、socket の各オプションを通じて購読し、要求されたデータを出力できることです。

索引モデルが issue の本文から書いたものです。

説明

discussion kind/proposal pinned

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

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

dapr/cli のほかの issue

dapr/cli の issue をすべて見る

似ている issue

Go の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。