Add typer equivalents for rattail commands

This commit is contained in:
Lance Edgar 2024-05-16 19:16:08 -05:00
parent 93c7b254a3
commit ea147e8c0d
3 changed files with 102 additions and 14 deletions

View file

@ -25,13 +25,14 @@ CORE Office commands
"""
import sys
from enum import Enum
import requests
from requests.auth import HTTPDigestAuth
import typer
from typing_extensions import Annotated
from corepos.enum import CoreDbType
from rattail.commands.typer import (make_typer, typer_eager_imports,
importer_command, typer_get_runas_user,
file_importer_command, file_exporter_command)
@ -41,12 +42,6 @@ from rattail_corepos.config import core_office_url
from rattail_corepos.corepos.office.util import get_fannie_config_value, get_blueline_template, make_blueline
class CoreDbType(str, Enum):
office_op = 'office_op'
office_trans = 'office_trans'
office_arch = 'office_arch'
core_office_typer = make_typer(
name='core_office',
help="core-office -- command line interface for CORE Office"