mirror of
https://github.com/ArchiveBox/ArchiveBox
synced 2024-11-29 07:30:23 +00:00
update docstrings and comments
This commit is contained in:
parent
ab68819332
commit
2f0dbeebc1
4 changed files with 6 additions and 5 deletions
|
@ -8,7 +8,7 @@ from importlib import import_module
|
|||
CLI_DIR = os.path.dirname(os.path.abspath(__file__))
|
||||
|
||||
# these common commands will appear sorted before any others for ease-of-use
|
||||
display_first = ('help', 'version', 'init', 'list', 'update', 'add', 'remove')
|
||||
display_first = ('help', 'version', 'init', 'info', 'list', 'update', 'add', 'remove')
|
||||
|
||||
# every imported command module must have these properties in order to be valid
|
||||
required_attrs = ('__package__', '__command__', 'main')
|
||||
|
|
|
@ -40,13 +40,14 @@ def main(args=None):
|
|||
{lightblue}Example Use:{reset}
|
||||
mkdir my-archive; cd my-archive/
|
||||
archivebox init
|
||||
archivebox info
|
||||
|
||||
archivebox add https://example.com/some/page
|
||||
archivebox add --depth=1 ~/Downloads/bookmarks_export.html
|
||||
|
||||
archivebox subscribe https://example.com/some/feed.rss
|
||||
archivebox update --resume=15109948213.123
|
||||
archivebox list --sort=timestamp --csv=timestamp,url,is_archived
|
||||
archivebox schedule --every=week https://example.com/some/feed.rss
|
||||
archivebox update --resume=15109948213.123
|
||||
|
||||
{lightblue}Documentation:{reset}
|
||||
https://github.com/pirate/ArchiveBox/wiki
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
__package__ = 'archivebox.cli'
|
||||
__command__ = 'archivebox schedule'
|
||||
__description__ = 'Set ArchiveBox to run regularly at a specific time'
|
||||
__description__ = 'Set ArchiveBox to regularly import URLs at specific times using cron'
|
||||
|
||||
import os
|
||||
import sys
|
||||
|
|
|
@ -133,7 +133,7 @@ def info():
|
|||
|
||||
num_bytes, num_dirs, num_files = get_dir_size(OUTPUT_DIR, recursive=False)
|
||||
size = human_readable_size(num_bytes)
|
||||
print(f' > Index Size: {size} across {num_files} files in')
|
||||
print(f' > Index Size: {size} across {num_files} files')
|
||||
print()
|
||||
|
||||
print('{green}[*] Scanning archive collection data directory with {} entries:{reset}'.format(len(all_links), **ANSI))
|
||||
|
|
Loading…
Reference in a new issue