Skip to content

proposal: os/exec: add method Cmd.String #30638

@josharian

Description

@josharian

It is common to want to log a command that you are about to run (or a command that you just ran, on error). Currently to do that you have to combine Cmd.Path and strings.Join Cmd.Args. I propose that we add a String method to Cmd that implements this very common need.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions