|
|
@ -15,6 +15,8 @@ def entry_point() -> None: |
|
|
|
|
|
|
|
if args.action == "apply": |
|
|
|
t.apply() |
|
|
|
elif args.action == "create": |
|
|
|
t.create(stored_path=args.stored_path) |
|
|
|
elif args.action == "restore": |
|
|
|
t.restore() |
|
|
|
elif args.action == "store": |
|
|
@ -63,6 +65,20 @@ def parse_arguments(args=None): |
|
|
|
help="The path to the directory to locate the cache file", |
|
|
|
) |
|
|
|
|
|
|
|
create_parser = subparsers.add_parser( |
|
|
|
"create", |
|
|
|
help="Create the cache file from an already stored path. Only creates the cache file.", |
|
|
|
parents=[base_parser], |
|
|
|
) |
|
|
|
create_parser.add_argument( |
|
|
|
"target_path", |
|
|
|
help="The path to the directory that should by a symlink", |
|
|
|
) |
|
|
|
create_parser.add_argument( |
|
|
|
"stored_path", |
|
|
|
help="The path that is currently stored (the target of the symlink)", |
|
|
|
) |
|
|
|
|
|
|
|
restore_parser = subparsers.add_parser( |
|
|
|
"restore", |
|
|
|
help="Move a transposed directory back to it's original location, based on the cachefile", |
|
|
|