File tree 4 files changed +18
-10
lines changed
4 files changed +18
-10
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " tapper-core" ,
3
- "version" : " 0.0.9 " ,
3
+ "version" : " 0.0.10 " ,
4
4
"description" : " CLI Source Code To Interact With Android ADB" ,
5
5
"main" : " index.js" ,
6
6
"scripts" : {
Original file line number Diff line number Diff line change @@ -130,13 +130,21 @@ async function onStartDropDownOptionsList() {
130
130
const isCliStartedWithArguments = process . argv != undefined && process . argv . length > 2
131
131
if ( isCliStartedWithArguments ) {
132
132
const argumentsToValidate = process . argv ;
133
+ const cliArguments : string [ ] = [ ] ;
133
134
let executionKey : string | undefined = "" ;
134
- if ( argumentsToValidate . length == 3 ) {
135
- executionKey = argumentsToValidate [ argumentsToValidate . length - 1 ]
136
- } else {
137
- executionKey = argumentsToValidate [ argumentsToValidate . length - 3 ]
135
+ let isCommandValidToAdd = false ;
136
+ for ( let i = 0 ; i < argumentsToValidate . length ; i ++ ) {
137
+ const valueToCheck = argumentsToValidate [ i ] as string
138
+ if ( valueToCheck . includes ( "execute" ) ) {
139
+ isCommandValidToAdd = true ;
140
+ executionKey = valueToCheck ;
141
+ cliArguments . push ( valueToCheck )
142
+ } else if ( isCommandValidToAdd ) {
143
+ cliArguments . push ( valueToCheck )
144
+ }
138
145
}
139
- onCommandClick ( executionKey ?? "" , argumentsToValidate ) ;
146
+
147
+ onCommandClick ( executionKey ?? "" , cliArguments ) ;
140
148
} else {
141
149
onStartDropDownOptionsList ( ) ;
142
150
}
Original file line number Diff line number Diff line change @@ -18,9 +18,9 @@ export class TapperCommandsManager {
18
18
* This Section is the Main Section for Direct Commands Outside CLI
19
19
* If you want To Execute The CLI With a Direct Command Use These Options
20
20
*/
21
- public static VIEW_DEVELOPER_OPTIONS_COMMAND = "developer-options-view " ;
22
- public static VIEW_TESTING_OPTIONS_COMMAND = "testing-options-view " ;
23
- public static VIEW_DEVICE_INFO = "view-device-info " ;
21
+ public static VIEW_DEVELOPER_OPTIONS_COMMAND = "developer-options-execute " ;
22
+ public static VIEW_TESTING_OPTIONS_COMMAND = "testing-options-execute " ;
23
+ public static VIEW_DEVICE_INFO = "view-device-execute " ;
24
24
public static VALIDATE_ADB_INSTALLATION_COMMAND = "adb-validate" ;
25
25
public static HELP_COMMAND = "help" ;
26
26
Original file line number Diff line number Diff line change 1
1
export class TapperInfo {
2
- public static CLI_VERSION = "0.0.9 " ;
2
+ public static CLI_VERSION = "0.0.10 " ;
3
3
public static CLI_SUPPORTED_PLATFORMS = "Android" ;
4
4
public static CLI_HOMEPAGE = "https://tapperapp.com"
5
5
public static CLI_SOURCE_CODE = "https://github.com/tapper-app/tapper-core"
You can’t perform that action at this time.
0 commit comments