forked from dcai/airnotifier
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathadmin.py
More file actions
executable file
·37 lines (26 loc) · 718 Bytes
/
admin.py
File metadata and controls
executable file
·37 lines (26 loc) · 718 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import click
import sys
import logging
@click.group(name="admin")
def cli():
pass
@cli.command(name="adduser")
@click.option("--email", help="email")
@click.option("--password", help="org id")
@click.option("--org", help="org id")
def cmd_add_user(email, password, org):
logging.info("add user")
@cli.command(name="chanageorg")
@click.option("--email", help="email")
@click.option("--org", help="org id")
def cmd_change_org(user, org):
pass
@cli.command(name="changepassword")
@click.option("--email", help="email")
@click.option("--password", help="password")
def cmd_chanage_password(user, password):
pass
if __name__ == "__main__":
cli()