From 19425cece9e4de2f87b9280eafcf34336e490780 Mon Sep 17 00:00:00 2001 From: Disassembler Date: Tue, 11 Feb 2020 16:22:37 +0100 Subject: [PATCH] Remove spoc-image extract --- usr/bin/spoc-image | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/usr/bin/spoc-image b/usr/bin/spoc-image index 697040c..bb41353 100644 --- a/usr/bin/spoc-image +++ b/usr/bin/spoc-image @@ -15,7 +15,6 @@ ACTION_DELETE = 3 ACTION_BUILD = 4 ACTION_PUBLISH = 5 ACTION_UNPUBLISH = 6 -ACTION_EXTRACT = 7 def get_image_name(filepath): # Read and return image name from image file @@ -73,9 +72,6 @@ def unpublish(image_name): image = Image(image_name, False) image.unpublish() -def extract(image_name, source, destination): - raise NotImplementedException() # TODO - parser = argparse.ArgumentParser(description='SPOC image manager') parser.set_defaults(action=None) subparsers = parser.add_subparsers() @@ -107,12 +103,6 @@ parser_unpublish = subparsers.add_parser('unpublish') parser_unpublish.set_defaults(action=ACTION_UNPUBLISH) parser_unpublish.add_argument('image') -parser_extract = subparsers.add_parser('extract') -parser_extract.set_defaults(action=ACTION_EXTRACT) -parser_extract.add_argument('image') -parser_extract.add_argument('source') -parser_extract.add_argument('destination') - args = parser.parse_args() if args.action == ACTION_LIST: @@ -127,7 +117,5 @@ elif args.action == ACTION_PUBLISH: publish(args.image, args.force) elif args.action == ACTION_UNPUBLISH: publishreop.unpublish_image(args.image) -elif args.action == ACTION_EXTRACT: - extract(args.image, args.source, args.destination) else: parser.print_usage()