mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2025-05-31 14:58:25 -04:00
split up utils into separate files
This commit is contained in:
parent
daf5951897
commit
95007d9137
23 changed files with 820 additions and 759 deletions
|
@ -1,17 +1,6 @@
|
|||
from cli import list_subcommands
|
||||
|
||||
from .config import ANSI
|
||||
from cli.logging import log_shell_welcome_msg
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
print('{green}# ArchiveBox Imports{reset}'.format(**ANSI))
|
||||
# print('from archivebox.core.models import Page, User')
|
||||
print('{green}from archivebox.cli import\narchivebox_{}{reset}'.format("\narchivebox_".join(list_subcommands().keys()), **ANSI))
|
||||
print()
|
||||
print('[i] Welcome to the ArchiveBox Shell! Example use:')
|
||||
print(' print(Page.objects.filter(is_archived=True).count())')
|
||||
print(' Page.objects.get(url="https://example.com").as_json()')
|
||||
|
||||
print(' Page.objects.get(url="https://example.com").as_json()')
|
||||
|
||||
print(' from archivebox.main import get_invalid_folders')
|
||||
from main import *
|
||||
log_shell_welcome_msg()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue