Add --all alias to commands that include hidden nodes, topics, or services
メンテナーはふだん 1 日以内に返信
評価
調査の方向性
Start with the listed verb and command modules under ros2node, ros2lifecycle, ros2param, ros2topic, and ros2service, then inspect their add_arguments methods and existing option tests in each package's test/ folder. Add -a and --all while preserving each existing argparse destination, skip ros2lifecycle/verb/list.py, and verify parsing sets the existing include-hidden attribute for every affected command.
索引モデルが issue の本文から書いたものです。
説明
Commands in ros2cli use different option names to include hidden entities. For example, ros2 node list and ros2 lifecycle nodes use -a / --all, ros2 node info uses --include-hidden, and other commands use --include-hidden-nodes, --include-hidden-topics, or --include-hidden-services.
Add --all (and -a) as an alias to the following files so users can pass --all consistently across commands:
ros2node/ros2node/verb/info.pyros2lifecycle/ros2lifecycle/verb/get.pyros2lifecycle/ros2lifecycle/verb/set.pyros2param/ros2param/verb/delete.pyros2param/ros2param/verb/describe.pyros2param/ros2param/verb/dump.pyros2param/ros2param/verb/get.pyros2param/ros2param/verb/list.pyros2param/ros2param/verb/load.pyros2param/ros2param/verb/set.pyros2topic/ros2topic/command/topic.pyros2topic/ros2topic/verb/find.pyros2topic/ros2topic/verb/list.pyros2service/ros2service/command/service.pyros2service/ros2service/verb/find.pyros2service/ros2service/verb/list.py
(Note: Skip ros2lifecycle/ros2lifecycle/verb/list.py because it already uses -a / --all to display all transitions.)
Example: How to add the alias
Keep the existing long option first (so argparse keeps the same args.<attribute> destination name) and add '--all' and '-a':
# Before:
parser.add_argument(
'--include-hidden-topics', action='store_true',
help='Consider hidden topics as well')
# After:
parser.add_argument(
'--include-hidden-topics', '--all', action='store_true',
help='Consider hidden topics as well')
Example: How to add a test
You can test argument parsing in the package's test/ folder using argparse.ArgumentParser:
import argparse
from ros2topic.verb.list import ListVerb
def test_list_all_alias():
parser = argparse.ArgumentParser()
verb = ListVerb()
verb.add_arguments(parser, 'ros2 topic list')
args = parser.parse_args(['--all'])
assert args.include_hidden_topics is True
- 主要言語
- Python
- スター
- 274
- フォーク
- 246
- 平均マージ
- 1日 14時間
- マージ済み PR(30日)
- 12
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
ros2/ros2cli のほかの issue
-
ros2 CLI prints BrokenPipeError traceback when output is piped to a command that exits early (e.g. head)再び着手できるかも @akshat-lakhera が 38 日前に担当しましたが、オープン中のプルリクエストはありません。 オープンbug
難易度 2/5 1〜3時間 初心者へのやさしさ 63/100
ros2/ros2cli#1342 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
Add --timeout alias to ros2 topic pub and ros2 param list対応中かも @1cbyc が 63 日前に担当しました。 オープンgood first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 92/100
ros2/ros2cli#1305 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
ros2doctor: UserWarning: Fail to call PackageReport/RosdistroReport class functions.対応中かも @sujanchalla0510 が 13 日前に担当しました。 オープンbug
難易度 2/5 1〜3時間 初心者へのやさしさ 20/100
メンテナーはふだん 1 日以内に返信
-
ros2run python script without extension .py fails on windows + pixi再び着手できるかも このイシューのプルリクエストはマージされずにクローズされました。 オープンbug more-information-needed
難易度 3/5 1〜2日 初心者へのやさしさ 68/100
ros2/ros2cli#1301 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
extend `ros2 topic info -v` with buffer-backend field対応中かも @fujitatomoya が 161 日前に担当しました。 オープンenhancement
メンテナーはふだん 1 日以内に返信
似ている issue
-
needs-triage
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
gke-labs/kube-agents#7441 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
-
enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 83/100
メンテナーはふだん 1 日以内に返信
-
bug confirmed issue
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
open-webui/open-webui#35142 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信