NativeScript / NativeScript/nativescript-cli
Support passing partial deviceIdentifier for `--device` flag
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 1.1k
- Forks
- 204
- Avg merge
- 1d 9h
- Merged PRs (30d)
- 8
Description
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
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at the --device handling for the tns run and tns debug command entry points, then compare it with the device identifiers shown by tns device. Support selecting the device when the supplied value is a unique prefix, and verify that a partial identifier such as ff8 selects the full identifier shown in the issue.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- cli, mobile
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100