rcb version

This commit is contained in:
Einar Forselv 2019-12-06 07:35:14 +01:00
parent cfc92b2284
commit ffa2dfc119
2 changed files with 6 additions and 1 deletions

View File

@ -0,0 +1 @@
__version__ = '0.3.2'

View File

@ -42,6 +42,10 @@ def main():
elif args.action == 'alert':
alert(config, containers)
elif args.action == 'version':
import restic_compose_backup
print(restic_compose_backup.__version__)
def status(config, containers):
"""Outputs the backup config for the compose setup"""
@ -205,7 +209,7 @@ def parse_args():
parser = argparse.ArgumentParser(prog='restic_compose_backup')
parser.add_argument(
'action',
choices=['status', 'snapshots', 'backup', 'start-backup-process', 'alert', 'cleanup'],
choices=['status', 'snapshots', 'backup', 'start-backup-process', 'alert', 'cleanup', 'version'],
)
parser.add_argument(
'--log-level',