https://github.com/dj95/glazy
GitLab CLI for the lazy ones
https://github.com/dj95/glazy
cli git gitlab
Last synced: 8 months ago
JSON representation
GitLab CLI for the lazy ones
- Host: GitHub
- URL: https://github.com/dj95/glazy
- Owner: dj95
- License: other
- Created: 2024-12-21T17:42:10.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-02-14T18:58:52.000Z (over 1 year ago)
- Last Synced: 2025-02-14T19:37:51.010Z (over 1 year ago)
- Topics: cli, git, gitlab
- Language: Rust
- Homepage:
- Size: 141 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
glazy
The goal of this CLI is to speed up the interaction with GitLab and your local terminal environment.
It provides ways to easily find and clone remote repositories to the local machine with some extra
actions.
## 📦 Requirements
- cargo (for building glazy)
- git (for cloning the repositories)
## 🚀 Installation
Clone this repository and run `cargo build -r` within it. Then copy the binary from `./target/release/glazy` into one of the directories of your `$PATH` (like `/usr/loca/bin`).
After copying the binary, create a config file at `$HOME/.config/glazy/config.kdl`.
```javascript
// Configuration related to the GitLab instance
gitlab {
// URL to the GitLab instance
host "url_val"
// Personal Access Token with at least api & write_repository permissions
token "token_val"
}
// Configuration for the local environment
local {
// Directory, where the project tree should start
project_dir "/Users/daniel/Developer"
}
```
The `url` must point to your GitLab instance without the protocol! `token` must be a personal access token with `api` &
`read_repository` permissions.
Then go ahead and run `glazy help` for getting familiar with the CLI interface.
## 🔨 Usage
### Find and clone repository
```bash
glazy open
# for starting at a certain group with all subgroups
glazy open mygroup
```
## 🔮 Future Features
- [ ] refresh/pull all local repository
- [x] initial bootstrap of multiple repositories via a layout file
## 🤝 Contributing
If you are missing features or find some annoying bugs please feel free to submit an issue or a bugfix within a pull request :)
## 📝 License
© 2024 Daniel Jankowski
This project is licensed under the MIT license.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.