Skip to content
Snippets Groups Projects
Commit 0a1765cc authored by Yohan Jarosz's avatar Yohan Jarosz
Browse files

add enter flag at the end

parent f1162c14
No related branches found
No related tags found
No related merge requests found
......@@ -91,11 +91,14 @@ if __name__ == '__main__':
# CL
cmd = ['docker', 'run'] + mount_points + envs
# if --enter flag is specified, add attach tty and set mode to interactive
if args['--enter']:
cmd += ['-it']
# add container name and commands to pass to snakemake
cmd += [container_name] + args['COMMANDS']
# if --enter flag is specified, change the command
if args['--enter']:
cmd += ['-it /bin/bash']
cmd += ['/bin/bash']
# parse CL correctly
cmd = shlex.split(' '.join(cmd))
print("Executing", '"', ' '.join(cmd), '"')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment