We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 951404e commit b4d1f56Copy full SHA for b4d1f56
templateflow/cli.py
@@ -141,7 +141,9 @@ def ls(template, **kwargs):
141
def get(template, **kwargs):
142
"""Fetch the assets corresponding to template and optional filters."""
143
entities = {k: _nulls(v) for k, v in kwargs.items() if v != ''}
144
- click.echo('\n'.join(f'{match}' for match in api.get(template, **entities)))
+ paths = api.get(template, **entities)
145
+ filenames = [str(paths)] if isinstance(paths, Path) else [str(file) for file in paths]
146
+ click.echo('\n'.join(filenames))
147
148
149
if __name__ == '__main__':
0 commit comments