重构
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
#!/usr/bin/env python3
|
||||
|
||||
from inventory_analytics.batch_inventory_report.cli import main
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
raise SystemExit(main())
|
||||
@@ -0,0 +1,16 @@
|
||||
#!/usr/bin/env python3
|
||||
|
||||
import sys
|
||||
|
||||
from inventory_analytics.channel_inventory_sync.entrypoint import main
|
||||
|
||||
|
||||
def _ensure_default_action() -> None:
|
||||
if any(arg == "--action" or arg.startswith("--action=") for arg in sys.argv[1:]):
|
||||
return
|
||||
sys.argv.extend(["--action", "all"])
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
_ensure_default_action()
|
||||
raise SystemExit(main())
|
||||
@@ -0,0 +1,7 @@
|
||||
#!/usr/bin/env python3
|
||||
|
||||
from inventory_analytics.batch_upload.web import main
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
raise SystemExit(main())
|
||||
Reference in New Issue
Block a user