Skip to content

Passing an URL to add when a "forge" input type is used fails #195

@samueldr

Description

@samueldr

This is a UX issue.


I mindlessly used the following command:

 $ npins add gitlab https://source.denx.de/u-boot/u-boot

When it should have been:

 $ npins add gitlab --server https://source.denx.de/ u-boot/u-boot

At least for forges, and other relevant input types where an URL is not the expected format used for an input, something could be done...

  • If possible and sensible, guessing --server
  • Eagerly fail on input that's incorrect

Though to be fair, I don't know if somehow for some awful reason GitLab (or other input types) could have supported https:// somewhere in org names or other organizational structure... If that's the case, there's not much that could be done. Though I'm pretty sure that at least GitLab is pretty strict here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions