Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion nf_core/launch.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ def __prompt_defaults_from_param_objects(cls, params_grouped):
for group_label, params in params_grouped.items():
click.echo("\n\n{}{}".format(
click.style('Parameter group: ', bold=True, underline=True),
click.style(group_label, bold=True, underline=True, fg='red'),
click.style(group_label, bold=True, underline=True, fg='red')
))
use_defaults = click.confirm(
"Do you want to change the group's defaults? "+click.style('[y/N]', fg='green'),
Expand Down
12 changes: 6 additions & 6 deletions nf_core/lint.py
Original file line number Diff line number Diff line change
Expand Up @@ -818,13 +818,13 @@ def print_results(self):
# Print results
rl = "\n Using --release mode linting tests" if self.release_mode else ''
logging.info("===========\n LINTING RESULTS\n=================\n" +
"{0:>4} tests passed".format(len(self.passed)) +
"{0:>4} tests had warnings".format(len(self.warned)) +
"{0:>4} tests failed".format(len(self.failed)) + rl
click.style("{0:>4} tests passed".format(len(self.passed)), fg='green') +
click.style("{0:>4} tests had warnings".format(len(self.warned)), fg='yellow') +
click.style("{0:>4} tests failed".format(len(self.failed)), fg='red') + rl
)
if len(self.passed) > 0:
logging.debug("Test Passed:\n {}".format("\n ".join(["http://nf-co.re/errors#{}: {}".format(eid, msg) for eid, msg in self.passed])))
logging.debug("{}\n {}".format(click.style("Test Passed:", fg='green'), "\n ".join(["http://nf-co.re/errors#{}: {}".format(eid, msg) for eid, msg in self.passed])))
if len(self.warned) > 0:
logging.warn("Test Warnings:\n {}".format("\n ".join(["http://nf-co.re/errors#{}: {}".format(eid, msg) for eid, msg in self.warned])))
logging.warn("{}\n {}".format(click.style("Test Warnings:", fg='yellow'), "\n ".join(["http://nf-co.re/errors#{}: {}".format(eid, msg) for eid, msg in self.warned])))
if len(self.failed) > 0:
logging.error("Test Failures:\n {}".format("\n ".join(["http://nf-co.re/errors#{}: {}".format(eid, msg) for eid, msg in self.failed])))
logging.error("{}\n {}".format(click.style("Test Failures:", fg='red'), "\n ".join(["http://nf-co.re/errors#{}: {}".format(eid, msg) for eid, msg in self.failed])))
14 changes: 6 additions & 8 deletions scripts/nf-core
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ def download(pipeline, release, singularity, outdir):
@click.option(
'--direct',
is_flag = True,
default = False,
default = False,
help = "Uses given values from the parameter file directly."
)
def launch(pipeline, params, direct):
Expand Down Expand Up @@ -231,11 +231,9 @@ def create(name, description, author, new_version, no_git, force, outdir):


if __name__ == '__main__':
print("""
,--./,-.
___ __ __ __ ___ /,-._.--~\\
|\ | |__ __ / ` / \ |__) |__ } {
| \| | \__, \__/ | \ |___ \`-._,-`-,
`._,._,'
""", file=sys.stderr)
click.echo(click.style("\n ,--.", fg='green')+click.style("/",fg='black')+click.style(",-.", fg='green'))
click.echo(click.style(" ___ __ __ __ ___ ", fg='blue')+click.style("/,-._.--~\\", fg='green'))
click.echo(click.style(" |\ | |__ __ / ` / \ |__) |__ ", fg='blue')+click.style(" } {", fg='yellow'))
click.echo(click.style(" | \| | \__, \__/ | \ |___ ", fg='blue')+click.style("\`-._,-`-,", fg='green'))
click.secho(" `._,._,'\n", fg='green')
nf_core_cli()