parent
a1e69cdf61
commit
655fb25bfa
@ -1,5 +1,6 @@
|
||||
import add_cmd
|
||||
import add_library_cmd
|
||||
import init_cmd
|
||||
import list_cmd
|
||||
import open_cmd
|
||||
import websearch_cmd
|
||||
import websearch_cmd
|
||||
|
@ -0,0 +1,15 @@
|
||||
from .. import repo
|
||||
|
||||
|
||||
def parser(subparsers, config):
|
||||
parser = subparsers.add_parser('add_library',
|
||||
help='add a set of papers to the repository')
|
||||
parser.add_argument('bibfile', help='bibtex, bibtexml or bibyaml file')
|
||||
return parser
|
||||
|
||||
def command(config, bibfile):
|
||||
"""
|
||||
:param bibtex bibtex file (in .bib, .bibml or .yaml format.
|
||||
"""
|
||||
rp = repo.Repository()
|
||||
rp.add_papers(bibfile)
|
Loading…
Reference in new issue