arusahni / git-req

Check out merge requests from your GitLab/GitHub hosted repositories from the command line with just the request number.
https://arusahni.github.io/git-req/
MIT License
57 stars 7 forks source link

Snap Package #29

Open arusahni opened 5 years ago

arusahni commented 5 years ago

It'd be nice to have a Snap package for platforms that don't have an official package. This isn't as easy as it sounds.

Pro:

arusahni commented 5 years ago

For reference, here's where I left off during my snap experimentation:

name: git-req
version: git
summary: Check out merge requests from your GitLab/GitHub hosted repos with ease!
description: |
  This git extension allows end-users to check out merge requests by
  their corresponding number.

  To use, simply `git req <number>` from the project directory.
confinement: devmode
base: core18
parts:
  git-req:
    plugin: rust
    source: .
    rust-channel: stable
    build-packages:
      - libssl-dev
      - pkg-config
plugs:
  config-git-req:
    interface: personal-files
    read:
      - $HOME/.gitreqconfig # This did not appear to work
    write:
      - $HOME/.gitreqconfig  # This did not appear to work
apps:
  git-req:
    command: bin/git-req
    plugs:
      - network
      - config-git-req