示例#1
0
文件: cli.py 项目: esehara/redline
def daily_report(cmd,opt):
    conf = tools.load_configure(cmd.configure_filename)
    xml  = redmine.load_redmine_xml(conf,opt)
    lines = dict_line(cmd,xml)
    if cmd.filepath is not None:
        report_string = redmine.build_daily_report(cmd.filepath,lines)
    else:
        report_string = redmine.build_daily_report(conf['TEMPLATE'],lines)
    print(report_string)
示例#2
0
文件: cli.py 项目: esehara/redline
def show_tickets(cmd,opt):
    print('''
   ____    U _____ u ____     _                  _   _   U _____ u 
U |  _"\ u \| ___"|/|  _"\   |"|        ___     | \ |"|  \| ___"|/ 
 \| |_) |/  |  _|" /| | | |U | | u     |_"_|   <|  \| |>  |  _|"   
  |  _ <    | |___ U| |_| |\\\\| |/__     | |    U| |\  |u  | |___   
  |_| \_\   |_____| |____/ u |_____|  U/| |\u   |_| \_|   |_____|  
  //   \\\\_  <<   >>  |||_    //  \\\\.-,_|___|_,-.||   \\\\,-.<<   >>  
 (__)  (__)(__) (__)(__)_)  (_")("_)\_)-' '-(_/ (_")  (_/(__) (__) 
            ''')
    conf = tools.load_configure(cmd.configure_filename)
    xml = redmine.load_redmine_xml(conf,opt)
    lines = dict_line(cmd,xml)
    for key,value in lines.items():
        print("---> " + key)
        for line in value:
            print(line)