Skip to content

Commit

Permalink
Just bold, not white on bold.
Browse files Browse the repository at this point in the history
  • Loading branch information
ewels committed Apr 30, 2021
1 parent 9796e69 commit 3d0d415
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions nf_core/download.py
Original file line number Diff line number Diff line change
Expand Up @@ -289,15 +289,13 @@ def prompt_use_singularity_cachedir(self):
"This allows downloaded images to be cached in a central location."
)
if rich.prompt.Confirm.ask(
f"[blue bold]?[/] [white bold]Define [blue not bold]$NXF_SINGULARITY_CACHEDIR[/] for a shared Singularity image download folder?[/]"
f"[blue bold]?[/] [bold]Define [blue not bold]$NXF_SINGULARITY_CACHEDIR[/] for a shared Singularity image download folder?[/]"
):
# Prompt user for a cache directory path
cachedir_path = None
while cachedir_path is None:
cachedir_path = os.path.abspath(
rich.prompt.Prompt.ask(
"[blue bold]?[/] [white bold]Specify the path:[/] (leave blank to cancel)"
)
rich.prompt.Prompt.ask("[blue bold]?[/] [bold]Specify the path:[/] (leave blank to cancel)")
)
if cachedir_path == os.path.abspath(""):
log.error(f"Not using [blue]$NXF_SINGULARITY_CACHEDIR[/]")
Expand All @@ -321,7 +319,7 @@ def prompt_use_singularity_cachedir(self):
f'[blue]export NXF_SINGULARITY_CACHEDIR="{cachedir_path}"[/]'
)
append_to_file = rich.prompt.Confirm.ask(
f"[blue bold]?[/] [white bold]Add to [blue not bold]~/{os.path.basename(bashrc_path)}[/] ?[/]"
f"[blue bold]?[/] [bold]Add to [blue not bold]~/{os.path.basename(bashrc_path)}[/] ?[/]"
)
if append_to_file:
with open(os.path.expanduser(bashrc_path), "a") as f:
Expand Down Expand Up @@ -349,7 +347,7 @@ def prompt_singularity_cachedir_only(self):
"However if you will transfer the downloaded files to a different system then they should be copied to the target folder."
)
self.singularity_cache_only = rich.prompt.Confirm.ask(
f"[blue bold]?[/] [white bold]Copy singularity images from [blue not bold]$NXF_SINGULARITY_CACHEDIR[/] to the target folder?[/]"
f"[blue bold]?[/] [bold]Copy singularity images from [blue not bold]$NXF_SINGULARITY_CACHEDIR[/] to the target folder?[/]"
)

# Sanity check
Expand Down

0 comments on commit 3d0d415

Please sign in to comment.