Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Svn main 001 rem #6489

Merged
merged 18 commits into from
Nov 2, 2023
Merged
Prev Previous commit
Next Next commit
changed file names in experiments
  • Loading branch information
svnsairam committed Nov 1, 2023
commit 8a433262a2d04576d052caa05a9673e32f0c8618
4 changes: 2 additions & 2 deletions src/commands/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
/**
* Loads all commands for our parser.
*/
export function load(client: any): any {

Check warning on line 6 in src/commands/index.ts

View workflow job for this annotation

GitHub Actions / lint (18)

Unexpected any. Specify a different type

Check warning on line 6 in src/commands/index.ts

View workflow job for this annotation

GitHub Actions / lint (18)

Unexpected any. Specify a different type
function loadCommand(name: string) {

Check warning on line 7 in src/commands/index.ts

View workflow job for this annotation

GitHub Actions / lint (18)

Missing return type on function
const t0 = process.hrtime.bigint();
const { command: cmd } = require(`./${name}`);

Check warning on line 9 in src/commands/index.ts

View workflow job for this annotation

GitHub Actions / lint (18)

Unsafe assignment of an `any` value

Check warning on line 9 in src/commands/index.ts

View workflow job for this annotation

GitHub Actions / lint (18)

Require statement not part of import statement
cmd.register(client);

Check warning on line 10 in src/commands/index.ts

View workflow job for this annotation

GitHub Actions / lint (18)

Unsafe member access .register on an `any` value

Check warning on line 10 in src/commands/index.ts

View workflow job for this annotation

GitHub Actions / lint (18)

Unsafe call of an `any` typed value
const t1 = process.hrtime.bigint();
const diffMS = (t1 - t0) / BigInt(1e6);
if (diffMS > 75) {
Expand All @@ -15,7 +15,7 @@
// console.error(`Loading ${name} took ${diffMS}ms`);
}

return cmd.runner();

Check warning on line 18 in src/commands/index.ts

View workflow job for this annotation

GitHub Actions / lint (18)

Unsafe return of an `any` typed value
}

const t0 = process.hrtime.bigint();
Expand Down Expand Up @@ -155,9 +155,9 @@
client.frameworks = {};
client.frameworks.stacks = {};
client.frameworks.stacks.list = loadCommand("frameworks-stacks-list");
client.frameworks.stacks.create = loadCommand("frameworks-stacks-create");
client.frameworks.stacks.create = loadCommand("frameworks-backends-create");
client.frameworks.stacks.create = loadCommand("frameworks-stacks-get");
client.frameworks.stacks.create = loadCommand("frameworks-stacks-delete");
client.frameworks.stacks.create = loadCommand("frameworks-backends-delete");
}
client.login = loadCommand("login");
client.login.add = loadCommand("login-add");
Expand Down
Loading