Skip to content

Commit

Permalink
use keywords as arrays in list
Browse files Browse the repository at this point in the history
  • Loading branch information
mashehu committed Nov 3, 2022
1 parent f289a69 commit 7a2fa10
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions nf_core/components/list.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def __init__(self, component_type, pipeline_dir, remote=True, remote_url=None, b
super().__init__(component_type, pipeline_dir, remote_url, branch, no_pull)
self.remote = remote

def list_components(self, keywords=None, print_json=False):
def list_components(self, keywords=[], print_json=False):
"""
Get available modules/subworkflows names from GitHub tree for repo
and print as list to stdout
Expand All @@ -31,9 +31,6 @@ def list_components(self, keywords=None, print_json=False):
table.add_column(f"{self.component_type[:-1].capitalize()} Name")
components = []

if keywords is None:
keywords = []

def pattern_msg(keywords):
if len(keywords) == 0:
return ""
Expand Down

0 comments on commit 7a2fa10

Please sign in to comment.