I have a number of conda environments containing different versions of a program, which I would like to wrap with unique (i.e. changed) names.
This seems like a simple thing to add, and I would be happy to contribute a pull request, if you agree.
I envisage a new command line option, say --wrap-files-as, which takes a colon separated list of names, which must be the same length as the --files-to-wrap list. (Otherwise, a fatal error.)
Regarding implementation, I think get_files_to_wrap() should in this instance return a list of tuples, which just get passed transparently through to _create_wrappers(). If this is passed a list of tuples, instead of a list of strings, it would create files named as per the --wrap-files-as list. If passed a list of strings as now, it would continue with the current behaviour. (This makes the code changes very localised.)
What do you think?
I have a number of conda environments containing different versions of a program, which I would like to wrap with unique (i.e. changed) names.
This seems like a simple thing to add, and I would be happy to contribute a pull request, if you agree.
I envisage a new command line option, say
--wrap-files-as, which takes a colon separated list of names, which must be the same length as the--files-to-wraplist. (Otherwise, a fatal error.)Regarding implementation, I think
get_files_to_wrap()should in this instance return a list of tuples, which just get passed transparently through to_create_wrappers(). If this is passed a list of tuples, instead of a list of strings, it would create files named as per the--wrap-files-aslist. If passed a list of strings as now, it would continue with the current behaviour. (This makes the code changes very localised.)What do you think?