Source code for zensols.grsync.cli
"""Command line entry point to the application.
"""
__author__ = 'Paul Landes'
from typing import List, Any, Dict
import sys
from zensols.cli import ActionResult, CliHarness
from zensols.cli import ApplicationFactory as CliApplicationFactory
[docs]
class ApplicationFactory(CliApplicationFactory):
[docs]
def __init__(self, *args, **kwargs):
kwargs['package_resource'] = 'zensols.grsync'
super().__init__(*args, **kwargs)
[docs]
def main(args: List[str] = sys.argv, **kwargs: Dict[str, Any]) -> ActionResult:
harness: CliHarness = ApplicationFactory.create_harness(relocate=False)
harness.invoke(args, **kwargs)