mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2025-05-19 01:15:11 -04:00
move everything out of legacy folder
This commit is contained in:
parent
553f312125
commit
1b8abc0961
74 changed files with 3162 additions and 2629 deletions
|
@ -1,4 +1,17 @@
|
|||
print()
|
||||
print('[i] Welcome to the ArchiveBox Shell! Example usage:')
|
||||
print(' Page.objects.all()')
|
||||
print(' User.objects.all()')
|
||||
from cli import list_subcommands
|
||||
|
||||
from .config import ANSI
|
||||
|
||||
|
||||
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')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue