2021-05-18 20:39:25 +10:00
|
|
|
#!/usr/bin/env python3.9
|
2016-11-19 16:26:23 +01:00
|
|
|
# -*- coding: utf-8 -*-
|
2016-11-19 13:50:07 +01:00
|
|
|
|
|
|
|
|
|
2018-09-17 23:59:38 +10:00
|
|
|
import eris.tools as tools
|
2016-11-19 13:50:07 +01:00
|
|
|
|
|
|
|
|
|
2019-07-22 10:49:40 +10:00
|
|
|
def main():
|
2021-11-29 12:51:34 +10:00
|
|
|
git_tools = [tools.git_diff, tools.git_blame, tools.git_log]
|
|
|
|
|
all_tools = [(["*"], tools.generic_tools() + git_tools)] + tools.TOOLS_FOR_EXTENSIONS
|
2019-07-22 10:49:40 +10:00
|
|
|
tool_set = set()
|
|
|
|
|
extension_set = set()
|
|
|
|
|
for extensions, tools_ in all_tools:
|
|
|
|
|
tool_set.update(tools_)
|
|
|
|
|
extension_set.update(extensions)
|
|
|
|
|
print(f"""\
|
2018-09-25 10:41:55 +10:00
|
|
|
# Eris Codebase Monitor
|
2016-11-19 13:50:07 +01:00
|
|
|
|
2020-01-10 14:04:57 +10:00
|
|
|
## Summary
|
2016-11-19 13:50:07 +01:00
|
|
|
|
2018-09-17 23:59:38 +10:00
|
|
|
Eris maintains an up-to-date set of reports for every file in a codebase.
|
2016-11-19 13:50:07 +01:00
|
|
|
|
2020-01-10 14:04:57 +10:00
|
|
|
## Installation
|
2016-11-19 13:50:07 +01:00
|
|
|
|
2021-10-18 01:40:39 +10:00
|
|
|
### Ubuntu (21.10)
|
2016-11-19 13:50:07 +01:00
|
|
|
|
2018-09-17 23:59:38 +10:00
|
|
|
# git clone https://github.com/ahamilton/eris
|
|
|
|
|
# cd eris
|
2021-10-31 22:49:13 +10:00
|
|
|
# ./install
|
2020-01-11 12:11:45 +10:00
|
|
|
# eris -h
|
2016-11-19 13:50:07 +01:00
|
|
|
|
2020-01-10 14:04:57 +10:00
|
|
|
### Docker
|
|
|
|
|
|
|
|
|
|
# git clone https://github.com/ahamilton/eris
|
|
|
|
|
# cd eris
|
2021-11-03 21:23:15 +10:00
|
|
|
# sudo docker build -t eris -f packaging/Dockerfile .
|
|
|
|
|
# cp packaging/eris-docker ~/bin/eris # e.g. Put wrapper script in your PATH
|
2020-01-10 14:13:30 +10:00
|
|
|
# eris -h
|
|
|
|
|
|
|
|
|
|
### AppImage
|
|
|
|
|
|
|
|
|
|
# Download AppImage file from github releases page:
|
|
|
|
|
https://github.com/ahamilton/eris/releases
|
2020-09-24 23:13:41 +10:00
|
|
|
# chmod +x eris-2020-09-24.AppImage
|
|
|
|
|
# mv eris-2020-09-24.AppImage ~/bin/eris # e.g. Put appimage in your PATH
|
2020-01-10 14:13:30 +10:00
|
|
|
# eris -h
|
2020-01-10 14:04:57 +10:00
|
|
|
|
|
|
|
|
## Tools
|
2016-11-19 15:58:21 +01:00
|
|
|
|
2020-10-17 12:14:16 +10:00
|
|
|
File types({len(extension_set)-1}) | Tools({len(tool_set)})
|
2018-06-05 08:16:49 +10:00
|
|
|
----------:| -----""")
|
2019-07-22 10:49:40 +10:00
|
|
|
for extensions, tools_ in all_tools:
|
2021-11-29 12:51:34 +10:00
|
|
|
print("%s | %s" % (" ".join("." + extension for extension in extensions),
|
|
|
|
|
" • ".join(f"[{tool.__name__}]({tool.url})" for tool in tools_)))
|
2019-07-22 10:49:40 +10:00
|
|
|
|
|
|
|
|
|
|
|
|
|
if __name__ == "__main__":
|
|
|
|
|
main()
|