MCPcopy
hub / github.com/ArchiveBox/ArchiveBox / log_shell_welcome_msg

Function log_shell_welcome_msg

archivebox/logging_util.py:526–539  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

524
525
526def log_shell_welcome_msg():
527 from .cli import list_subcommands
528
529 print('{green}# ArchiveBox Imports{reset}'.format(**ANSI))
530 print('{green}from archivebox.core.models import Snapshot, ArchiveResult, Tag, User{reset}'.format(**ANSI))
531 print('{green}from archivebox.cli import *\n {}{reset}'.format("\n ".join(list_subcommands().keys()), **ANSI))
532 print()
533 print('[i] Welcome to the ArchiveBox Shell!')
534 print(' https://github.com/ArchiveBox/ArchiveBox/wiki/Usage#Shell-Usage')
535 print()
536 print(' {lightred}Hint:{reset} Example use:'.format(**ANSI))
537 print(' print(Snapshot.objects.filter(is_archived=True).count())')
538 print(' Snapshot.objects.get(url="https://example.com").as_json()')
539 print(' add("https://example.com/some/new/url")')
540
541
542

Callers 1

welcome_message.pyFile · 0.90

Calls 1

list_subcommandsFunction · 0.85

Tested by

no test coverage detected