mirror of
https://github.com/Rushilwiz/SkoolOS.git
synced 2025-04-16 02:10:19 -04:00
20 lines
495 B
Python
20 lines
495 B
Python
from __future__ import print_function, unicode_literals
|
|
from PyInquirer import prompt, print_json
|
|
import os
|
|
|
|
def login():
|
|
questions = [
|
|
{
|
|
'type': 'input',
|
|
'name': 'user_name',
|
|
'message': 'What\'s your first name',
|
|
},
|
|
{
|
|
'type': 'password',
|
|
'name': 'passwd',
|
|
'message': 'Password?',
|
|
},
|
|
]
|
|
|
|
answers = prompt(questions)
|
|
print_json(answers) # use the answers as input for your app |