()
| 524 | |
| 525 | |
| 526 | def 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 |
no test coverage detected