Skip to content

The option of displaying environment path shows the output of the path without a new line #2195

@harunyasar

Description

@harunyasar
  • I am on the latest Poetry version.
  • I have searched the issues of this repo and believe that this is not a duplicate.
  • If an exception occurs when executing a command, I executed it again in debug mode (-vvv option).
  • OS version and name: elementary OS 5.1.2 Hera
  • Poetry version: 1.0.5

Issue

Poetry environment info option gives the current path value without a new line.

$ poetry env info --path

Screenshot from 2020-03-18 14 59 19

I think that changing just a line within the EnvInfoCommand class would be fine.

Because the function writes the output with self.write(str(env.path)) It might have to be self.line(str(env.path)). I think changing the value in this way can give the expected output.

https://github.com/python-poetry/poetry/blob/master/poetry/console/commands/env/info.py#L13-L26

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugSomething isn't working as expected

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions