FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
nativescript-cli/lib/platform-command-param.ts at experiments · NativeScript/nativescript-cli · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
NativeScript
/
nativescript-cli
Public
Uh oh!
There was an error while loading.
Please reload this page
.
Notifications
You must be signed in to change notification settings
Fork
205
Star
1.1k
Code
Issues
356
Pull requests
23
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
nativescript-cli
/
lib
/
platform-command-param.ts
Copy path
More file actions
More file actions
Latest commit
History
History
History
11 lines (11 loc) · 445 Bytes
Breadcrumbs
nativescript-cli
/
lib
/
platform-command-param.ts
Copy path
File metadata and controls
11 lines (11 loc) · 445 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
export
class
PlatformCommandParameter
implements
ICommandParameter
{
constructor
(
private
$platformService
:
IPlatformService
,
private
$projectData
:
IProjectData
)
{
}
mandatory
=
true
;
async
validate
(
value
:
string
)
:
Promise
<
boolean
>
{
this
.
$projectData
.
initializeProjectData
(
)
;
this
.
$platformService
.
validatePlatform
(
value
,
this
.
$projectData
)
;
return
true
;
}
}
$injector
.
register
(
"platformCommandParameter"
,
PlatformCommandParameter
)
;
Back
|
FazBrowse Home
|
New Git URL