Skip to content

A few Proposal(s) : CLI args improvement, GitHub Enterprise supportΒ #11

@tprasadtp

Description

@tprasadtp

Hey @hackebrot
I would like to propose the following changes

  1. Remove -u | --username option and use token via HTTP headers.
    It is not necessary and github will soon stop supporting password based authentication to its APIs. username is not necessary if HTTP headers are used, see this.

  2. This might be better suited under bugs. Because how click args are defined, --help is useless
    for fetch and sync without specifying -t | --token as it gives an error.

      Usage: labels [OPTIONS] COMMAND [ARGS]...
      Try "labels --help" for help.
    
      Error: Missing option "-t" / "--token".
    
  3. Support GitHub enterprise
    I think adding an optional argument which defaults to api.github.com should be sufficient. (for SSL system certs should be used, as its the most sane option)

  4. for option above, and for the token I would like to propose that we use GITHUB_URL and GITHUB_TOKEN as env variables as they are better in my opinion than LABELS_TOKEN

  5. Because above changes are breaking changes we need to bump minor version

  6. Docker
    docker
    I am not proposing that you provide docker images. because I already do it anyway and will be happy to maintain the images on GitHub and DockerHub.

  7. May be I am spoiled by Go. Use Pyinstaller for packaging it into a binary? its always nice to have a self contained static binary.(I know about libc requirements) Though, I am not too keen on this one.

  8. This one may be my peeve, isort and black for formatting?

I have already completed work on most of them, (needs a bit more testing for GitHub Enterprise) and will be happy to submit PR(s) if you are willing to accept any of these.

Metadata

Metadata

Assignees

No one assigned

    Labels

    discussionIssues for discussing ideas for features

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions