alphagov/gds-pre-commit

Inform users of register / handle `ctrl+c`?

Closed this issue · 0 comments

Should we inform users of the register?
Pre-register question, something like Register usage? (Y/n)

Also, capture ctrl+c around inputs?

try:
    username = input("Enter your github username:")
except KeyboardInterrupt:
    print("\nRegistration cancelled.")
    exit()

or perhaps wrap input?

def inputc(text):
    try:
        return input(text)
    except KeyboardInterrupt:
        print("\nRegistration cancelled.")
        exit()