Beispiel #1
0
def create_group(group_id, quiet=False):
    ans = 'n'
    if not quiet:
        ans = get_stdin(
            "Do you want to create the group '{0}'? [y/N]: ".format(group_id))
    else:
        ans = 'y'

    if ans.lower() == 'y':
        msg = Agent.create_group(group_id)
    else:
        msg = "Cancelled."

    print(msg)