Update the main file for util commands
This commit is contained in:
parent
034a2a3dd1
commit
54e0c5d12a
1 changed files with 15 additions and 2 deletions
17
src/main.ts
17
src/main.ts
|
|
@ -1,7 +1,7 @@
|
||||||
//
|
//
|
||||||
// main.ts
|
// main.ts
|
||||||
//
|
//
|
||||||
// Written by: Oliver Akins (2019/11/06 - 2020/07/21)
|
// Written by: Oliver Akins (2019/11/06 - 2021/12/02)
|
||||||
//
|
//
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -11,7 +11,20 @@ import { run_tests } from "./services/test_runner";
|
||||||
import { LOAD_CONFIG } from "./utils/Config";
|
import { LOAD_CONFIG } from "./utils/Config";
|
||||||
|
|
||||||
|
|
||||||
let config = LOAD_CONFIG();
|
export function change_index(value: number) {
|
||||||
|
question_index = value;
|
||||||
|
};
|
||||||
|
export function reset_users() {
|
||||||
|
users = {};
|
||||||
|
};
|
||||||
|
|
||||||
|
export var user_right_count: {[index: string]: number} = {};
|
||||||
|
export var users: {[index: string]: string} = {};
|
||||||
|
export let question_index: number = -1;
|
||||||
|
|
||||||
|
export const questions: string[] = []
|
||||||
|
|
||||||
|
export var config = LOAD_CONFIG();
|
||||||
let args = process.argv.slice(2);
|
let args = process.argv.slice(2);
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue