gli: Tiny cli to fetch PR info from gitlab

[ bsd3, cli, library, program ] [ Propose Tags ]

Please see README.md


[Skip to Readme]
Versions [faq] 0.0.1, 0.0.1.1
Dependencies aeson (>=0.11.2.1 && <0.12), attoparsec (>=0.13.1.0 && <0.14), base (>=4.9.0.0 && <4.10), bytestring (>=0.10.8.1 && <0.11), containers (>=0.5.7.1 && <0.6), friendly-time (==0.4.*), gli, http-client (>=0.4.31.2 && <0.5), http-client-tls (>=0.2.4.1 && <0.3), http-conduit (>=2.1.11 && <2.2), network-uri (>=2.6.1.0 && <2.7), optparse-applicative (>=0.12.1.0 && <0.13), process (>=1.4.2.0 && <1.5), text (>=1.2.2.1 && <1.3), time (>=1.6.0.1 && <1.7), yaml (>=0.8.20 && <0.9) [details]
License BSD-3-Clause
Copyright 2016 Mrinmoy Das
Author goromlagche
Maintainer mrinmoy.das91@gmail.com
Revised Revision 3 made by HerbertValerioRiedel at Wed Oct 17 16:15:48 UTC 2018
Category CLI
Home page https://github.com/goromlagche/gli#readme
Source repo head: git clone https://github.com/goromlagche/gli
Uploaded by goromlagche at Mon Jan 2 07:01:13 UTC 2017
Distributions NixOS:0.0.1.1
Executables gli
Downloads 1050 total (17 in the last 30 days)
Rating (no votes yet) [estimated by rule of succession]
Your Rating
  • λ
  • λ
  • λ
Status Hackage Matrix CI
Docs not available [build log]
All reported builds failed as of 2017-01-02 [all 3 reports]

Modules

  • Gli
    • Gli.Cli
    • Gli.Gitlab
    • Gli.Setup
    • Gli.Types

Downloads

Note: This package has metadata revisions in the cabal description newer than included in the tarball. To unpack the package including the revisions, use 'cabal get'.

Maintainer's Corner

For package maintainers and hackage trustees


Readme for gli-0.0.1

[back to package description]

gli [WIP]

Goal is to fetch PR info etc.

Setup

  1. stack setup
  2. stack build
  3. stack exec which gli to get the binary path
  4. alias gli=binary_path

Flow

  1. Store the gitlab credentials on a file locally. (e.g. ~/.gli.yml)

    sample file

       accounts:
         my_hosted_gitlab:
             key: abcd1234xyz
             url: https://gitlab.dev.my_hosted_gitlab.com/api/v3
         gitlab:
             key: xyz4321dcba
             url: https://gitlab.com/api/v3
    

    You can get the credentials from https://gitlab.com/profile/account

  2. Setup gli for a git repo

    This will create a repo specific gli.yml file, which will store all the information regarding the repo, and will also be checked out from git.

     $ cd my_gitlab_repo_path
     $ gli setup -f ~/.gli.yml
     $ cat gli.yml
     project:
       ssh_url_to_repo: git@gitlab.com:organization/repo_name.git
       name: repo_name
       id: 123
       description: 'killer app 42'
     masterFileConfig:
       key: gitlab
       file: /Users/goromlagche/.gli.yml
    
  3. Fetch all open PR related info

     $ gli prs