diff --git a/repoman-client/repoman_client/subcommands/snapshot.py b/repoman-client/repoman_client/subcommands/snapshot.py new file mode 100644 index 0000000..2cec456 --- /dev/null +++ b/repoman-client/repoman_client/subcommands/snapshot.py @@ -0,0 +1,21 @@ +from repoman_client.subcommand import SubCommand +from argparse import ArgumentParser +import sys + +class SnapshotSystem(SubCommand): + command_group = 'advanced' + command = 'snapshot-system' + alias = None + description = 'Snapshots currently running system' + + def get_parser(self): + p = ArgumentParser(description) + padd_argument('-u', '--upload', action='store_true', default=False, + help='Upload to repository after snapshot') + p.add_argument('-f', '--force', action='store_true', default=False, + help='Force overwriting an existing image') + return p + + def __call__(self, args, extra_args=None): + pass +