Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Tell extensions when they are run as extensions and not standalone #14071

Description

@heaths

Describe the feature or problem you’d like to solve

Perhaps I'm being pedantic, but I'd love to show correct usage for my Go-based extensions when they are run either standalone or as a gh extension.

Proposed solution

Have gh set an environment variable GH_EXTENSION=1 when calling an extension. The extension can easily check this cross-platform to vary usage.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementa request to improve CLI

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions