Skip to content

Dynamic .cmd suffix for Terminal's first arg on Windows #27

@Mandera

Description

@Mandera

Hardcoded like this now, checking for npm and jest. Can detect if program is unavailable but program.cmd is available. Not sure if it can be done quickly

        if args[0] in ("npm", "jest") and VerInfo().windows:
            args[0] = f"{args[0]}.cmd"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions