Changeset d006a6d in rattail


Ignore:
Timestamp:
08/01/2022 09:16:57 PM (6 months ago)
Author:
Lance Edgar <lance@…>
Branches:
master
Children:
96ec45c
Parents:
ad5df3a
Message:

Remove unused command

File:
1 edited

Legend:

Unmodified
Added
Removed
  • rattail/commands/core.py

    rad5df3a rd006a6d  
    806806
    807807
    808 class LoadHostDataCommand(Subcommand):
    809     """
    810     Loads data from the Rattail host database, if one is configured.
    811     """
    812 
    813     name = 'load-host-data'
    814     description = "Load data from host database"
    815 
    816     def run(self, args):
    817         from .db import get_engines
    818         from .db import load
    819 
    820         engines = get_engines(self.config)
    821         if 'host' not in engines:
    822             sys.stderr.write("Host engine URL not configured.\n")
    823             sys.exit(1)
    824 
    825         proc = load.LoadProcessor(self.config)
    826         proc.load_all_data(engines['host'], ConsoleProgress)
    827 
    828 
    829808class MakeAppDir(Subcommand):
    830809    """
Note: See TracChangeset for help on using the changeset viewer.