NativeScript / NativeScript/nativescript-cli

Support passing partial deviceIdentifier for `--device` flag

未关闭
#4,945 0 条评论 1 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

deploy feature run unit testing
主要语言
JavaScript
星标
1.1k
派生
204
平均合并
1 天 9 小时
30 天内合并 PR
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

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

调研方向

tns runtns debug 命令入口对 --device 的处理开始,然后将其与 tns device 显示的设备标识符进行比较。当提供的值是唯一前缀时,支持选择该设备,并验证类似 ff8 的部分标识符能够选择 issue 中显示的完整标识符。

由索引模型根据 Issue 内容生成。

评估

技术栈
javascript
领域
cli, mobile
Issue 类型
功能
难度
3/5
预计耗时
1-2 天
活跃度
停滞
描述清晰度
基本清楚
新手友好度
45/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。