Rename rattail import-corepos
command to import-corepos-db
to prepare for `import-corepos-api`
This commit is contained in:
parent
ffd451a700
commit
9aefbc872e
4 changed files with 34 additions and 8 deletions
|
@ -2,7 +2,7 @@
|
|||
################################################################################
|
||||
#
|
||||
# Rattail -- Retail Software Framework
|
||||
# Copyright © 2010-2018 Lance Edgar
|
||||
# Copyright © 2010-2020 Lance Edgar
|
||||
#
|
||||
# This file is part of Rattail.
|
||||
#
|
||||
|
@ -24,8 +24,6 @@
|
|||
Rattail Commands
|
||||
"""
|
||||
|
||||
from __future__ import unicode_literals, absolute_import
|
||||
|
||||
from rattail import commands
|
||||
from rattail.util import load_object
|
||||
|
||||
|
@ -47,15 +45,15 @@ class ExportCore(commands.ImportSubcommand):
|
|||
return load_object(spec)
|
||||
|
||||
|
||||
class ImportCOREPOS(commands.ImportSubcommand):
|
||||
class ImportCOREPOSDB(commands.ImportSubcommand):
|
||||
"""
|
||||
Import data from a CORE POS database
|
||||
"""
|
||||
name = 'import-corepos'
|
||||
name = 'import-corepos-db'
|
||||
description = __doc__.strip()
|
||||
|
||||
def add_parser_args(self, parser):
|
||||
super(ImportCOREPOS, self).add_parser_args(parser)
|
||||
super(ImportCOREPOSDB, self).add_parser_args(parser)
|
||||
parser.add_argument('--corepos-dbkey', metavar='KEY', default='default',
|
||||
help="Config key for CORE POS database engine to be used as the \"host\", "
|
||||
"i.e. the source of the data to be imported. This key " "must be "
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue