Skip to content

gh gist create: Please allow to define the FileName for the newly created gist #5113

@schittli

Description

@schittli

Describe the feature or problem you’d like to solve

Most often, we like to share gists, but not the (sensible) information about local Path to the source file.
But commands like gh gist create --public 'c:\MyProject\MyModule\MyFile.ps1' automatically creates the gist filename c:\MyProject\MyModule\MyFile.ps1 😞

Of course, it should be possible to not only define the description (using -d), but also the published file name.

Proposed solution

Please allow us to define the Filename for the created Gist, too. For example:
gh gist create --public 'c:\…\MyFile.ps1' -d 'Description' -name 'MyFile.ps1'

How will it benefit CLI and its users?
At the moment, the CLI offers just a very small subset of the Web interface functions and almost always as we use GitHub CLI, we have to switch to the Web browser and complete the task 😢. It would be very useful we could start and complete any task using the CLI.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinghelp wantedContributions welcomepriority-2Affects more than a few users but doesn't prevent core functions

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions