NativeScript / NativeScript/nativescript-cli
Support passing partial deviceIdentifier for `--device` flag
まだ誰も着手していません。
- 主要言語
- JavaScript
- スター
- 1.1k
- フォーク
- 204
- 平均マージ
- 1日 9時間
- マージ済み PR(30日)
- 8
説明
Is your feature request related to a problem? Please describe.
When using --device flag to tns run (or debug) command, I would like to be able to pass only part of the device identifier. I know I can copy the whole device identifier from the output of tns device command, but when working in a narrow terminal, the device identifier in the output of the command is often split on two rows and it is hard to copy the full id.
Describe the solution you'd like
In case I have device with identifier ff8de22d8b25f3aa3d822d5e016e65eb9747d1f2, I would like to be able to pass --device ff8
Describe alternatives you've considered
No
Additional context
No
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
まず、tns run と tns debug のコマンドエントリポイントにおける --device の処理を確認し、それを tns device に表示されるデバイス識別子と比較します。指定された値が一意なプレフィックスである場合にデバイスを選択できるようにし、ff8 のような部分識別子で Issue に表示されている完全な識別子が選択されることを確認します。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- javascript
- 領域
- cli, mobile
- issue の種類
- 機能追加
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 45/100