Skip to content

Commit 69b3995

Browse files
committed
Fix Diff Enviornments Paths
1 parent d308a4c commit 69b3995

File tree

4 files changed

+18
-10
lines changed

4 files changed

+18
-10
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "tapper-core",
3-
"version": "0.0.9",
3+
"version": "0.0.10",
44
"description": "CLI Source Code To Interact With Android ADB",
55
"main": "index.js",
66
"scripts": {

src/index.ts

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -130,13 +130,21 @@ async function onStartDropDownOptionsList() {
130130
const isCliStartedWithArguments = process.argv != undefined && process.argv.length > 2
131131
if (isCliStartedWithArguments) {
132132
const argumentsToValidate = process.argv;
133+
const cliArguments: string[] = [];
133134
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+
}
138145
}
139-
onCommandClick(executionKey ?? "", argumentsToValidate);
146+
147+
onCommandClick(executionKey ?? "", cliArguments);
140148
} else {
141149
onStartDropDownOptionsList();
142150
}

src/utils/tapper.commands.manager.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ export class TapperCommandsManager {
1818
* This Section is the Main Section for Direct Commands Outside CLI
1919
* If you want To Execute The CLI With a Direct Command Use These Options
2020
*/
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";
2424
public static VALIDATE_ADB_INSTALLATION_COMMAND = "adb-validate";
2525
public static HELP_COMMAND = "help";
2626

src/utils/tapper.info.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
export class TapperInfo {
2-
public static CLI_VERSION = "0.0.9";
2+
public static CLI_VERSION = "0.0.10";
33
public static CLI_SUPPORTED_PLATFORMS = "Android";
44
public static CLI_HOMEPAGE = "https://tapperapp.com"
55
public static CLI_SOURCE_CODE = "https://github.com/tapper-app/tapper-core"

0 commit comments

Comments
 (0)