Skip to content

Add "fake" Env.set_var function #385

@Anton-4

Description

@Anton-4

Cmd.env is what should be used so maybe we should guide people to that just like Str.len. Proposal:

set_var : (Str, Str) -> [UseCmdDotEnvInstead(Str)]
set_var = |_|
    UseCmdDotEnvInstead("Setting an environment variable first for a future command can make it hard to know which env vars affect what, check out `Cmd.Env` instead.") 

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions