hit-on icon indicating copy to clipboard operation
hit-on copied to clipboard

[CFP] Ability to change GitHub for other platform?

Open vrom911 opened this issue 6 years ago • 1 comments

There are only a few places where we using the GitHub platform itself. It's mostly Git oriented. So in order to make the tool more flexible we can allow user to specify the platform they prefer through the , for example, env variable.

Potential places to use different platforms

GitHub only features

  • hit new with assignment
  • hit new with the issue creation

Any comment, suggestions or problems with this one (cc @chshersh )?

vrom911 avatar Dec 04 '19 14:12 vrom911

@vrom911 That's an excellent proposal! I like the idea of making this tool to support more platforms, especially if this can be done without much pain. And I also think that the environment variable (with GitHub being the default) would be the most convenient way to implement it. You can specify it in your ~/.bashrc file if you use some platform more often than others.

I would also add that hit issue command currently works only with GitHub. So it looks like that for some commands we need to implement some failure mode where they display red error text saying that this command is not supported for this platform. But in theory it should be possible to implement some of them for GitLab at least because there's a Haskell library for it:

  • http://hackage.haskell.org/package/gitlab-haskell

But definitely not in the first version, I guess in the first version we only should tell about non-supported operations and support everything we can do easily (like clone command).

chshersh avatar Dec 04 '19 16:12 chshersh