text: import readline from 'readline'
  
  export const readLineMacID = async () => {
    const rl = readline.createInterface({
      input: process.stdin,
      output: process.stdout
    })
  
    return new Promise((resolve) => {
      rl.question('Enter MacID: ', (answer) => {
        rl.close()
        resolve(answer)
      })
    })
  }
  
  export const readLinePassword = async () => {
    const rl = readline.createInterface({
      input: process.stdin,
      output: process.stdout
    })
  
    return new Promise((resolve) => {
      rl.question('Enter Password: ', (answer) => {
        rl.close()
        resolve(answer)
      })
    })
  }
  
  export const readLineClassToEnroll = async () => {
    const rl = readline.createInterface({
      input: process.stdin,
      output: process.stdout
    })
  
    return new Promise((resolve) => {
      rl.question('Course to enroll: ', (answer) => {
        rl.close()
        resolve(answer)
      })
    })
  }
  
  export const readLineClassToDrop = async () => {
    const rl = readline.createInterface({
      input: process.stdin,
      output: process.stdout
    })
  
    return new Promise((resolve) => {
      rl.question('Course(s) to drop: ', (answer) => {
        rl.close()
        resolve(answer)
      })
    })
  }
  