mirror of
https://github.com/chubin/cheat.sh.git
synced 2026-06-20 13:16:44 +02:00
added repositories urls to adapters
This commit is contained in:
@@ -37,6 +37,7 @@ class CheatSheets(Adapter):
|
||||
|
||||
_adapter_name = "cheat.sheets"
|
||||
_output_format = "code"
|
||||
_repository_url = "https://github.com/chubin/cheat.sheets"
|
||||
|
||||
def __init__(self):
|
||||
self._answers = []
|
||||
|
||||
@@ -19,6 +19,7 @@ class Tldr(Adapter):
|
||||
_adapter_name = "tldr"
|
||||
_output_format = "code"
|
||||
_cache_needed = True
|
||||
_repository_url = "https://github.com/tldr-pages/tldr"
|
||||
|
||||
def _get_list(self, prefix=None):
|
||||
return [filename[:-3]
|
||||
@@ -49,6 +50,8 @@ class Cheat(Adapter):
|
||||
_adapter_name = "cheat"
|
||||
_output_format = "code"
|
||||
_cache_needed = True
|
||||
_repository_url = "https://github.com/cheat/cheat"
|
||||
_cheatsheet_files_prefix = "cheat/cheatsheets/"
|
||||
|
||||
def _get_list(self, prefix=None):
|
||||
return _get_filenames(PATH_CHEAT_PAGES)
|
||||
|
||||
@@ -8,6 +8,7 @@ class Latenz(Adapter):
|
||||
|
||||
_adapter_name = "late.nz"
|
||||
_output_format = "ansi"
|
||||
_repository_url = "https://github.com/chubin/late.nz"
|
||||
|
||||
def _get_page(self, topic, request_options=None):
|
||||
sys.path.append(PATH_LATENZ)
|
||||
|
||||
@@ -796,6 +796,7 @@ class LearnXinY(Adapter):
|
||||
|
||||
_output_format = 'code'
|
||||
_cache_needed = True
|
||||
_repository_url = "https://github.com/adambard/learnxinyminutes-docs"
|
||||
|
||||
def __init__(self):
|
||||
self.adapters = _ADAPTERS
|
||||
|
||||
Reference in New Issue
Block a user