q7s-cp can now copy to flatsat as well
Some checks failed
EIVE/eive-obsw/pipeline/head There was a failure building this commit
Some checks failed
EIVE/eive-obsw/pipeline/head There was a failure building this commit
This commit is contained in:
parent
6543264691
commit
90da51ed5a
@ -49,6 +49,13 @@ def handle_args():
|
|||||||
action="store_true",
|
action="store_true",
|
||||||
help="Copy from Q7S to host instead. Always copies to current directory.",
|
help="Copy from Q7S to host instead. Always copies to current directory.",
|
||||||
)
|
)
|
||||||
|
parser.add_argument(
|
||||||
|
"-f",
|
||||||
|
"--flatsat",
|
||||||
|
default=False,
|
||||||
|
action="store_true",
|
||||||
|
help="Copy to flatsat instead"
|
||||||
|
)
|
||||||
# Positional argument(s)
|
# Positional argument(s)
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
"source", help="Source files to copy or target files to copy back to host"
|
"source", help="Source files to copy or target files to copy back to host"
|
||||||
@ -61,6 +68,9 @@ def build_cmd(args):
|
|||||||
cmd = "scp "
|
cmd = "scp "
|
||||||
if args.recursive:
|
if args.recursive:
|
||||||
cmd += "-r "
|
cmd += "-r "
|
||||||
|
if args.flatsat:
|
||||||
|
cmd += f"{args.source} eive@flatsat.eive.absatvirt.lw:{target}"
|
||||||
|
else:
|
||||||
target = args.target
|
target = args.target
|
||||||
if args.invert and target == "":
|
if args.invert and target == "":
|
||||||
target = "."
|
target = "."
|
||||||
|
Loading…
Reference in New Issue
Block a user