Because life's too short for manual setups and you don't have time to automate things!
Lightweight
Automated
Zero-effort
Yielding-results
Lazy is your secret weapon for turbocharging git, GitHub CLI commands. Say goodbye to tedious manual configurations, combined commands and hello to lightning-fast, automated awesomeness! We're so lazy that we took advantage of the existing awesome github cli tool
and beautified it with laziness.
- ๐โโ๏ธ Sprint through GitHub issue or issue
S
and milestone creation, deletion - ๐ค Automagically set up GitHub Projects (v2)
- ๐งโโ๏ธ Customize task templates with the power of JSON
- ๐งจ Nuke GitHub projects and issues with ease
- ๐ Seamlessly integrate with GitHub CLI like a boss
- Private LLM interface for Ollama or
Llama-3.2 2b param
Before you embark on your Lazy journey, make sure you have:
- Your laziness!
- Homebrew installed (because we're fancy like that)
- A GitHub account (you're not living under a rock, are you?)
- A valid GitHub token with appropriate permissions (we'll show you how)
- Basic knowledge of JSON (don't worry, it's not rocket science)
- A burning desire to automate ALL THE THINGS!
- Optional: If you have ollama installed, configure an LLM for more awesome stuff!!!
Let's get this party started:
-
Fire up your terminal (and try not to feel like a hacker)
-
Install the GitHub CLI (if you haven't already):
brew install gh
-
Install the Lazy extension (prepare to be amazed):
gh extension install lazy
-
Do a little victory dance ๐บ๐
Time to unleash the power of Lazy:
gh lazy create --repo "your-awesome-username/your-cool-repo" --tasks "path/to/your/amazing/tasks.json"
Lazy - Your productive gh and git superpowers
Usage: gh lazy create [flags]
Flags:
-r, --repo string Your repository's name (e.g., 'cool-dev/awesome-project')
-t, --tasks string Path to your magical tasks JSON file
-f, --token-file string Path to the file containing your GitHub token (default ".token")
Example:
gh lazy create --repo cool-dev/awesome-project --tasks ./world-domination-plan.json
Delete a GitHub project and optionally all linked issues.
gh lazy nuke [--projectid <project_id_or_url>] [--all] [--dry-run]
-
If you provide the
--projectid
(-p
) flag, the command will delete the specified project. -
If you omit the
--projectid
flag, the tool will:- List all your available projects and allow you to select one interactively.
- Ask if you want to perform a dry run first.
- Ask if you want to delete all associated issues.
Usage: gh lazy nuke [flags]
Flags:
-p, --projectid string Project ID or URL to nuke
-a, --all Delete all issues linked to the project
--dry-run Show what would happen without making changes
Example:
gh lazy nuke --projectid https://github.com/users/yourusername/projects/1 --all --dry-run
Examples:
-
Interactive Mode:
gh lazy nuke
This will prompt you to select a project and configure options interactively.
-
Dry Run Without Deleting Issues:
gh lazy nuke --projectid https://github.com/users/yourusername/projects/1 --dry-run
-
Dry Run With Deleting Issues:
gh lazy nuke --projectid 1 --all --dry-run
-
Actual Deletion:
gh lazy nuke --projectid 1 --all
-
Need to prepare your prompt for your favourite LLM?
gh lazy codeprompt "given this project, I need to modify my version.go file, help me out" --system-prompt . --ignore-gitignore --ignore "go.sum" --ignore "*.md" --ignore "gh-lazy" -o prompt.txt
- Lazy reads your JSON file faster than you can say "automation."
- It creates milestones and issues in your GitHub repo like a seasoned project manager on steroids.
- A shiny new GitHub Project (v2) materializes out of thin air.
- Issues are automagically added to the project, leaving you more time for coffee breaks.
- Need to clean up? Use the
nuke
command to delete projects and issues effortlessly.
Want to make Lazy even more awesome? Here's how:
- Fork the repo (and star it while you're at it).
- Create a new branch (
git checkout -b feature/mind-blowing-idea
). - Commit your changes (
git commit -am 'Add some mind-blowing feature'
). - Push to the branch (
git push origin feature/mind-blowing-idea
). - Create a new Pull Request and wait for the applause.
This project is licensed under the MIT License - see the LICENSE.md file for details. (TL;DR: Do whatever you want, just don't blame us if your computer gains sentience)
Stuck? Need help? Just want to chat about the meaning of life?
- Open an issue in our GitHub repo.
Remember: Stay Lazy, Stay Productive! ๐ด๐ป
I've done this due to the community efforts, making it easy like a breeze. ๐ฌ๏ธ Because why work hard when you can work smart? ๐ง ๐ก
Special thanks for the full list of lazy legends who made this possible! ๐ฆธโโ๏ธ๐ฆธโโ๏ธ
Click here for a sneak peek of our gratitude (and some reactions)! ๐
- To the coffee that fueled this project: โ (๐ x 1000)
- To GitHub Copilot, our silent partner: ๐ฅ (๐ x 99999999)
- To our rubber duck debuggers: ๐ฆ (โค๏ธ x 42)
- To Cmd+C and Cmd+V, the real MVPs: ๐ (๐ x โ)
Remember, in the world of gh-lazy
, we don't just stand on the shoulders of giants. We take the elevator! ๐๐
P.S. If you're not lazy enough to click the link above, you're probably using this tool wrong. Just saying! ๐