mirror of
https://github.com/chubin/cheat.sh.git
synced 2026-06-20 13:16:44 +02:00
separated the Cheat Adapter to a module
This commit is contained in:
@@ -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 = "*"
|
||||
Reference in New Issue
Block a user