| 1 |
# vim: set ft=python ts=4 sw=4 expandtab: |
| 2 |
# ruff: file-ignore[import-outside-top-level] |
| 3 |
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # |
| 4 |
# |
| 5 |
# C E D A R |
| 6 |
# S O L U T I O N S "Software done right." |
| 7 |
# S O F T W A R E |
| 8 |
# |
| 9 |
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # |
| 10 |
# |
| 11 |
# Author : Kenneth J. Pronovici <[email protected]> |
| 12 |
# Language : Python 3 |
| 13 |
# Project : Cedar Backup, release 3 |
| 14 |
# Purpose : Scripts published by UV as part of the Python package |
| 15 |
# |
| 16 |
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # |
| 17 |
|
| 18 |
""" |
| 19 |
Scripts published by UV as part of the Python package. |
| 20 |
""" |
| 21 |
|
| 22 |
import sys |
| 23 |
|
| 24 |
|
| 25 |
def cback3(): |
| 26 |
"""Implementation of the cback3 script, the main command-line interface.""" |
| 27 |
from CedarBackup3.cli import cli |
| 28 |
|
| 29 |
result = cli() |
| 30 |
sys.exit(result) |
| 31 |
|
| 32 |
|
| 33 |
def amazons3(): |
| 34 |
"""Implementation of the cback3-amazons3-sync script.""" |
| 35 |
from CedarBackup3.tools.amazons3 import cli |
| 36 |
|
| 37 |
result = cli() |
| 38 |
sys.exit(result) |
| 39 |
|
| 40 |
|
| 41 |
def span(): |
| 42 |
"""Implementation of the cback3-span script.""" |
| 43 |
from CedarBackup3.tools.span import cli |
| 44 |
|
| 45 |
result = cli() |
| 46 |
sys.exit(result) |