Command literal aliases do not work with Brigadier

オープン
#5 コメント 3 件 リアクション 0 件 担当者 0 名 GitHub で見る

@metabrixkt がすでに取り組んでいます。

2024年8月2日 から。

  • #91 @metabrixkt による — オープン

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
25/100
issue の種類
機能追加
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
java
領域
cli

調査の方向性

まず、リンクされた例を使って不足している Brigadier の候補を再現し、コマンドエイリアスを担当する Brigadier 統合を調査してください。issue では、意図された動作を文書化するか、オプトインのオプションを追加するかが決められていないため、想定される完了条件には maintainer による確認が必要です。

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

説明

brigadier

Aliases of literal arguments do not show up in the command suggestions for Brigadier. The commands do, however, still work if you use the aliases. I had a little chat on the Discord server with a couple of the devs and found that this is intentional due to polluting the Brigadier command node map. I would recommend either documenting that this is intentional somewhere (the wiki perhaps?), or maybe add an option to enable this functionality explicitly since it has downsides.

Example code: https://pastebin.com/71hT3fSW
Gif of executing the command with suggestions: https://gyazo.com/c78e08a403f6e95194e1574167e70990

主要言語
Java
スター
111
フォーク
30
PR マージ指標
30日以内にマージされた PR はありません

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

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

Incendo/cloud-minecraft のほかの issue

Incendo/cloud-minecraft の issue をすべて見る

似ている issue

Java の issue をもっと見る

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

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