MCPcopy
hub / github.com/ArchiveBox/ArchiveBox / hint

Function hint

archivebox/config.py:814–822  ·  view source on GitHub ↗
(text: Union[Tuple[str, ...], List[str], str], prefix='    ', config: Optional[ConfigDict]=None)

Source from the content-addressed store, hash-verified

812 sys.stderr.write(prefix + ''.join(strs))
813
814def hint(text: Union[Tuple[str, ...], List[str], str], prefix=' ', config: Optional[ConfigDict]=None) -> None:
815 ansi = DEFAULT_CLI_COLORS if (config or {}).get('USE_COLOR') else ANSI
816
817 if isinstance(text, str):
818 stderr('{}{lightred}Hint:{reset} {}'.format(prefix, text, **ansi))
819 else:
820 stderr('{}{lightred}Hint:{reset} {}'.format(prefix, text[0], **ansi))
821 for line in text[1:]:
822 stderr('{} {}'.format(prefix, line))
823
824
825# Dependency Metadata Helpers

Callers 7

check_dependenciesFunction · 0.85
setup_djangoFunction · 0.85
addFunction · 0.85
removeFunction · 0.85
setupFunction · 0.85
scheduleFunction · 0.85
run_parser_functionsFunction · 0.85

Calls 2

stderrFunction · 0.85
getMethod · 0.45

Tested by

no test coverage detected