Skip to content

Commit

Permalink
Add plugin level citations to the action --citation flag
Browse files Browse the repository at this point in the history
  • Loading branch information
Oddant1 committed Jun 27, 2024
1 parent efac9fc commit dabde45
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion q2cli/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,13 @@ def get_opt_groups(self, ctx):
}

def _get_citation_records(self):
return self._get_action().citations
import q2cli.util
pm = q2cli.util.get_plugin_manager()
# Get plugin level citations
citations = list(pm.plugins[self.plugin['name']].citations)
# Add action level citations
citations.extend(self._get_action().citations)
return tuple(citations)

def _get_plugin(self):
import q2cli.util
Expand Down

0 comments on commit dabde45

Please sign in to comment.