Projects STRLCPY Osmedeus Commits b4e680b7
🤬
  • ■ ■ ■ ■ ■ ■
    README.md
    skipped 4 lines
    5 5   <a href=""><img alt="Software License" src="https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square"></a>
    6 6   <a href=""><img alt="OS" src="https://img.shields.io/badge/OS-Linux,%20macOS-green.svg"></a>
    7 7   <a href="https://github.com/j3ssie/Osmedeus"><img alt="Release" src="https://img.shields.io/badge/version-1.2-red.svg"></a>
     8 + <a href="https://youtu.be/8L5BAyyrNc0"><img alt="Demo" src="https://img.shields.io/badge/demo-youtube-blue.svg"></a>
    8 9   </p>
    9 10  </p>
    10 11   
    skipped 37 lines
    48 49  # Demo
    49 50  [![asciicast](https://asciinema.org/a/230164.svg)](https://asciinema.org/a/230164)
    50 51   
     52 +![Slack Noti](https://raw.githubusercontent.com/j3ssie/Osmedeus/master/imgs/slack_noti.png)
     53 + 
     54 +![Slack Report](https://raw.githubusercontent.com/j3ssie/Osmedeus/master/imgs/slack_report.png)
     55 + 
    51 56  ![Web UI 1](https://raw.githubusercontent.com/j3ssie/Osmedeus/master/imgs/osmedeus-1.png)
    52 57   
    53 58  ![Web UI 2](https://raw.githubusercontent.com/j3ssie/Osmedeus/master/imgs/osmedeus-2.png)
    54 59   
    55 60  ![Web UI 3](https://raw.githubusercontent.com/j3ssie/Osmedeus/master/imgs/osmedeus-3.png)
    56  - 
    57  -![Slack Noti](https://raw.githubusercontent.com/j3ssie/Osmedeus/master/imgs/slack_noti.png)
    58 61   
    59 62   
    60 63  # Disclaimer
    skipped 14 lines
  • ■ ■ ■ ■ ■ ■
    core/rest/logs.py
    skipped 9 lines
    10 10  get local logs command by workspace
    11 11  '''
    12 12   
    13  -#get main json by workspace name
    14  - 
    15  - 
    16 13  class Logs(Resource):
    17 14   def __init__(self, **kwargs):
    18 15   self.options = utils.reading_json(
    skipped 46 lines
    65 62   for k in raw_logs.keys():
    66 63   for item in raw_logs[k]:
    67 64   cmd_item = item
     65 + cmd_item["module"] = k
     66 + cmd_item['std_path'] = utils.replace_argument(
     67 + self.options, item.get('std_path')).replace(self.options['WORKSPACES'], '')
     68 + cmd_item['output_path'] = utils.replace_argument(
     69 + self.options, item.get('output_path')).replace(self.options['WORKSPACES'], '')
    68 70   cmd_item["module"] = k
    69 71   all_commands.append(cmd_item)
    70 72   
    skipped 2 lines
  • ■ ■ ■ ■ ■
    core/rest/modules.py
    skipped 10 lines
    11 11  show content of file in log command
    12 12  '''
    13 13   
     14 +#get main json by workspace name
     15 + 
     16 + 
    14 17  class Modules(Resource):
    15 18   
    16 19   def __init__(self, **kwargs):
    skipped 17 lines
    34 37   if "report" in self.commands[k].keys():
    35 38   report = utils.replace_argument(
    36 39   self.options, self.commands[k].get("report"))
    37  - report_item = {"module": k, "report": report}
     40 + report_item = {"module": k, "report": report.replace(
     41 + self.options['WORKSPACE'], ws_name)}
    38 42   reports.append(report_item)
    39 43   
    40 44   return {'reports': reports}
    skipped 1 lines
Please wait...
Page is in error, reload to recover