CZ-NIC / convey

CSV processing and web related data types mutual conversion
GNU General Public License v3.0
18 stars 4 forks source link

nicer dialogs #8

Closed e3rd closed 8 years ago

e3rd commented 8 years ago

sourceParser structered something like:

def print_info(): "delimiter, header, ru (100), cn (200) " def is_yes(user_input): return user_input.lower in ("y","yes")

for fn in [determineIp, questions...]: print_info() fn() s = input() if s == "x": cancel else fn(input = s)

def determineIp(input = None): if not input: "whats the ip"; else: store input