Skip to content

(🎁) poetry show X --version would be pretty useful for scripts #5128

Open

Description

@KotlinIsland
  • I have searched the issues of this repo and believe that this is not a duplicate.
  • I have searched the documentation and believe that my question is not covered.

Feature Request

I want to be able to:

> version=$(poetry show playwright --version)

Currently I have to do something like:

> version=$(poetry show playwright | grep -P "Version\s*:" | grep -oP '[^ ]*$')

Why on earth is --version a global option?

> poetry show playwright --version
Poetry version 1.1.12

It only ever makes sense to run it on it's own poetry --version, never with other arguments/sub commands:

> poetry add pendulum --dev --version
Poetry version 1.1.12

😕

Activity

  1. added
    kind/feature
    status/triage
    on Jan 31, 2022
  2. added
    area/cli
    on May 19, 2022
  3. added
    area/show
    on Oct 10, 2024
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

    area/cliarea/showkind/featurestatus/triage

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions