Skip to content

Commit

Permalink
outline grade flow menu
Browse files Browse the repository at this point in the history
  • Loading branch information
DryCreations committed Oct 22, 2021
1 parent f45017c commit e3d24ec
Showing 1 changed file with 47 additions and 0 deletions.
47 changes: 47 additions & 0 deletions modules/grade.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,52 @@


export default async function(octokit) {
console.log("Start Grading");

let csv;
let grader;
let repos;

let options = {
'csv': {
disabled: false,
name: 'Select CSV',
action: async () => {
console.log('Select CSV');
}
},
'grader': {
disabled: false,
name: 'Select Grader',
action: async () => {
console.log('Select Grader');
}
},
'repos': {
disabled: false,
name: 'Select repos',
action: async () => {
console.log('Select repos');
}
},
'start': {
disabled: false,
name: 'Start Grading',
action: async () => {
console.log('Start Grading');
}
},
}

const choice = await Select.prompt({
message: "What would you like to do?",
options: Object.entries(options).map(([value, {name, disabled}]) => {
return {value, name, disabled}
}),
});

await options[choice].action();

/*
Select CSV (Hold State) (Optional, will set select repos)
Expand Down

0 comments on commit e3d24ec

Please sign in to comment.