https://github.com/goromlagche/gli
tiny git"lab/hub" cli wrapper
https://github.com/goromlagche/gli
cli gitlab haskell
Last synced: 3 months ago
JSON representation
tiny git"lab/hub" cli wrapper
- Host: GitHub
- URL: https://github.com/goromlagche/gli
- Owner: goromlagche
- License: bsd-3-clause
- Created: 2016-12-01T20:48:14.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2017-01-03T19:51:44.000Z (about 9 years ago)
- Last Synced: 2025-10-21T13:54:08.548Z (3 months ago)
- Topics: cli, gitlab, haskell
- Language: Haskell
- Size: 31.3 KB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# gli [WIP]
Goal is to fetch PR info etc.
## Setup
cabal install gli
## 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
```