anaconda / anaconda-project

Tool for encapsulating, running, and reproducing data science projects
https://anaconda-project.readthedocs.io/en/latest/
Other
217 stars 88 forks source link

[BUG] missing command description #341

Open AlbertDeFusco opened 2 years ago

AlbertDeFusco commented 2 years ago

There is a bug in anaconda-project - the command line 'anaconda-project list-commands' lists only unix commands even on windows Ex:
This is what contain => anaconda-project.yml:
"""
commands:
My_test:
unix: echo hello Linux
windows: echo hello Windows
""" On Linux:
> anaconda-project list-commands
"""
Commands for project: /mnt/c/DEV/Windows
Name Description
==== ===========
My_test echo hello Linux
""" On Windows:
> anaconda-project list-commands
"""
Commands for project: C:\DEV\Windows
Name Description
==== ===========
My_test echo hello Linux
"""

AlbertDeFusco commented 2 years ago

My guess is that without a description field in the command it's picking up the command itself as the description and decided to grab the unix command.

This seems like a good opportunity to improve the output of list-commands