Skip to content

Commit

Permalink
Merge pull request #666 from ewels/schema-build-nointernet
Browse files Browse the repository at this point in the history
Schema build - extra help if running offline
  • Loading branch information
ewels authored Jul 13, 2020
2 parents 5f03a4d + a7c5423 commit 8f3c482
Showing 1 changed file with 14 additions and 5 deletions.
19 changes: 14 additions & 5 deletions nf_core/schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -253,12 +253,21 @@ def build_schema(self, pipeline_dir, no_prompts, web_only, url):
self.launch_web_builder()
except AssertionError as e:
logging.error(click.style(e.args[0], fg="red"))
logging.info(
"To save your work, open {}\n"
"Click the blue 'Finished' button, copy the schema and paste into this file: {}".format(
self.web_schema_build_web_url, self.schema_filename
# Extra help for people running offline
if "Could not connect" in e.args[0]:
logging.info(
"If you're working offline, now copy your schema ({}) and paste at https://nf-co.re/json_schema_build".format(
self.schema_filename
)
)
logging.info("When you're finished, you can paste the edited schema back into the same file")
if self.web_schema_build_web_url:
logging.info(
"To save your work, open {}\n"
"Click the blue 'Finished' button, copy the schema and paste into this file: {}".format(
self.web_schema_build_web_url, self.schema_filename
)
)
)
return False

def get_wf_params(self):
Expand Down

0 comments on commit 8f3c482

Please sign in to comment.