MCPcopy
hub / github.com/ArchiveBox/ArchiveBox / stderr

Function stderr

archivebox/config.py:804–812  ·  view source on GitHub ↗
(*args, color: Optional[str]=None, prefix: str='', config: Optional[ConfigDict]=None)

Source from the content-addressed store, hash-verified

802 sys.stdout.write(prefix + ''.join(strs))
803
804def stderr(*args, color: Optional[str]=None, prefix: str='', config: Optional[ConfigDict]=None) -> None:
805 ansi = DEFAULT_CLI_COLORS if (config or {}).get('USE_COLOR') else ANSI
806
807 if color:
808 strs = [ansi[color], ' '.join(str(a) for a in args), ansi['reset'], '\n']
809 else:
810 strs = [' '.join(str(a) for a in args), '\n']
811
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

Callers 15

write_search_indexFunction · 0.90
query_search_indexFunction · 0.90
flush_search_indexFunction · 0.90
index_linksFunction · 0.90
load_configFunction · 0.85
hintFunction · 0.85
check_system_configFunction · 0.85
check_dependenciesFunction · 0.85
check_data_folderFunction · 0.85
check_migrationsFunction · 0.85
setup_djangoFunction · 0.85

Calls 1

getMethod · 0.45

Tested by

no test coverage detected