diff --git a/lib/adapter/cheat_cheat.py b/lib/adapter/cheat_cheat.py new file mode 100644 index 0000000..6db5638 --- /dev/null +++ b/lib/adapter/cheat_cheat.py @@ -0,0 +1,22 @@ +""" +Adapter for https://github.com/cheat/cheat + +Cheatsheets are located in `cheat/cheatsheets/` +Each cheat sheet is a separate file without extension +""" + +# pylint: disable=relative-import,abstract-method + +from git_adapter import GitRepositoryAdapter + +class Cheat(GitRepositoryAdapter): + """ + cheat/cheat adapter + """ + + _adapter_name = "cheat" + _output_format = "code" + _cache_needed = True + _repository_url = "https://github.com/cheat/cheat" + _cheatsheet_files_prefix = "cheat/cheatsheets/" + _cheatsheet_file_mask = "*"