Skip to content

Add option to wrap as a different name #23

@tesujimath

Description

@tesujimath

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions