|
@ -6,7 +6,6 @@ from swagger_client.models import CreateUserOption, Team, User, Organization |
|
|
from swagger_client.rest import ApiException |
|
|
from swagger_client.rest import ApiException |
|
|
from sys import stderr |
|
|
from sys import stderr |
|
|
import click |
|
|
import click |
|
|
import secrets |
|
|
|
|
|
import termcolor |
|
|
import termcolor |
|
|
import requests |
|
|
import requests |
|
|
from bs4 import BeautifulSoup as bs |
|
|
from bs4 import BeautifulSoup as bs |
|
@ -125,7 +124,7 @@ ADMIN_TOKEN = config.ADMIN_TOKEN |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@click.command() |
|
|
@click.command() |
|
|
@click.option('-a', '--admin-token', help='Admin access token', required=True) |
|
|
@click.option('-a', '--admin-token', help='Admin access token') |
|
|
@click.option('-h', '--host', help='Gitea URL (default: {})'.format(HOST)) |
|
|
@click.option('-h', '--host', help='Gitea URL (default: {})'.format(HOST)) |
|
|
@click.option('-e', '--email', help='Emailova adresa noveho uzivatele.', required=True) |
|
|
@click.option('-e', '--email', help='Emailova adresa noveho uzivatele.', required=True) |
|
|
@click.option('-u', '--username', help='Uzivatelske jmeno noveho uzivatele.', required=True) |
|
|
@click.option('-u', '--username', help='Uzivatelske jmeno noveho uzivatele.', required=True) |
|
|