From acf0ba86d5a8b822db360f36c45e8062ef0a5739 Mon Sep 17 00:00:00 2001 From: Tiago d'Almeida Date: May 15 2022 00:32:54 +0000 Subject: Convert the Readme file to Markdown Why? Because the .md file type is more used for all projects (for Readme, at least). - Added subtitles for commands - Added updated information about hub and cli GitHub tools. - Added a credits section. - Changed the new command symbol to "$". - Added some hidden TODO. --- diff --git a/README.md b/README.md new file mode 100644 index 0000000..4536219 --- /dev/null +++ b/README.md @@ -0,0 +1,97 @@ +# pag + +[`pag`](https://pagure.io/pag) helps you win at [pagure.io](https://pagure.io) ! + +Intended to mimic the [hub](https://github.com/github/hub) and [cli](https://cli.github.com/) tools for [github.com](https://github.com). + +## Usage + +```bash + $ pag --help + Usage: pag [OPTIONS] COMMAND [ARGS]... + + Options: + --help Show this message and exit. + + Commands: + clone Clone an existing repo. + create Create a new repo. + create-issue + default + fork + pull-request Open a new pull request. + remote Create remote for another fork. + review Check out a pull request locally. + upload Upload new file to releases. +``` + +## Commands + +### Clone + +The `clone` command can be used to clone a repo by name without having to find or type out the URL: + +```bash + $ pag clone koji + Cloning into 'koji'... +``` + +Or you can clone a fork: + +```bash + $ pag clone ralph/koji + Cloning into 'koji'... +``` + +### Create + +`pag` provides a convenience command for creating new projects:: + +```bash + $ pag create factory2 "Ostensibly better than factory version 1" +``` + +### Fork + +After you clone a repo, you can `fork` it on [pagure.io](https://pagure.io) and adjust your local `remote` settings: + +```bash + $ pag fork +``` + +### Remote + +If you want to add the `remotes` of other forks, that's easy too. Just do it by username: + +```bash + $ cd koji/ + $ pag remote add ausil + $ git remote -v + ausil ssh://git@pagure.io/forks/ausil/koji.git (fetch) + origin ssh://git@pagure.io/koji.git (fetch) + $ git pull ausil master +``` + +## Perks + +To enable bash completion, add the following to your `.bashrc`: + +```bash + eval "$(_PAG_COMPLETE=source pag)" +``` + + + +## Credits + +*Ralph Bean* as `ralph` +*Tiago d'Almeida* as `tjapro` +© 2022