
# Overview / examples / todo

## r

### auth
#### auth add
#### auth ls
#### auth rm
#### auth set
#### auth validate

### git
`git [-a <name>|--auth=<name>] <command> [arguments] [options]`
#### git repo
```BASH
git repo --list --list.teams                # show list of repos for auth user and it's teams
git repo --auth=bbs -l --list.teams         # same, but for another git auth instead of default
git repo --auth.bbs --list --list.teams     # show list of repos for auth user and it's teams for default and "bbs" auth.

# go overboard, pull off all clothes and just show it all
git repo --auth.all --list --list.teams --list.branches --list.tags
# equals to
git repo --list.all

git repo create <owner> <repo>
```
#### git mirror
1. The `bitbucket_server` will **always** have the primary base repository.
2. This repository will get zero to infinite mirror hooks added, based on given arguments.
3. This will auto-sync all code between git remotes.
```bash
git mirror create <project> <repo>         # creates a repo in a project, mirrors nothing

# creates a repo "addon2" in "laradic" project.
# It will do so aswell on github using the same names
git mirror create laradic addon2 -g

# same, but also on bitbucket
git mirror create laradic addon2 -g -b

# same, but it changes the organisation name for github to laradic-gh
git mirror create laradic addon2 -g laradic-gh -b

# same, but it changes the destination repository for github
git mirror create laradic addon2 -g laradic-gh/laradic-addon2 -b

# same can be done for bitbucket obviously..


# Adjust auths
--auth.github=<name>
--auth.bitbucket=<name>
-a.g=<name>
-a.b=<name>

# options
-o.private                      # Creates private repo
-o.has_wiki                     # Enables the wiki
-o.description "desc for it"    # Defines the description

```
##### git mirror create
##### git mirror edit
##### git mirror delete

### jenkins
`jenkins [-a <name>|--auth=<name>] <command> [arguments] [options]`
#### jenkins status
```BASH
jenkins status
jenkins status -f queues jobs
```
#### jenkins job
`jenkins job [job] [order] [<options>]`
```BASH
jenkins job radic-commando --start
jenkins job radic-commando --stop-all --stop-last --stop=<id>
jenkins job radic-commando --status-all --status-last --status=<id>
```


### jira
#### jira query
```BASH
jira query "<query>"                 # show issues (using default jira auth)
jira query "<query>" -a company2     # show issues using other jira auth
jira query "<query>" -s my-query     # show issues and save query
jira query my-query                  # run saved query to show issues
jira query my-query -f id summary    # with usefull modifiers

jira query -l                        # show saved queries
jira query -r my-query               # remove saved query

```

### dev