Address PR feedback - change output to show Filename only
This commit is contained in:
@@ -226,7 +226,7 @@ def start_download_data(args: Dict[str, Any]) -> None:
|
||||
|
||||
def start_list_strategies(args: Dict[str, Any]) -> None:
|
||||
"""
|
||||
Print Strategies available in a folder
|
||||
Print Strategies available in a directory
|
||||
"""
|
||||
config = setup_utils_configuration(args, RunMode.UTIL_NO_EXCHANGE)
|
||||
|
||||
@@ -234,7 +234,7 @@ def start_list_strategies(args: Dict[str, Any]) -> None:
|
||||
strategies = StrategyResolver.search_all_objects(directory)
|
||||
# Sort alphabetically
|
||||
strategies = sorted(strategies, key=lambda x: x['name'])
|
||||
strats_to_print = [{'name': s['name'], 'location': s['location']} for s in strategies]
|
||||
strats_to_print = [{'name': s['name'], 'location': s['location'].name} for s in strategies]
|
||||
|
||||
if args['print_one_column']:
|
||||
print('\n'.join([s['name'] for s in strategies]))
|
||||
|
Reference in New Issue
Block a user