Skip to content

add a subcommand 'cargo env' to manage all environment variables #9816

@hitzhangjie

Description

@hitzhangjie

Describe the problem you are trying to solve
To manage all cargo environment variables is inconvenient.

Describe the solution you'd like
To add a new subcommand to manage this.

like:

  • cargo env, list all maintained and valid variables
  • cargo env -w envName=envValue, change the value of environment variable

This suggestion comes from my experience in golang, I think it's useful. To look up documentation is inconvenient. Tool is convenient.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-environment-variablesArea: environment variablesA-new-subcommandArea: new subcommandC-feature-requestCategory: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`S-triageStatus: This issue is waiting on initial triage.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions