Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Changelog
All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to
[Semantic Versioning](https://semver.org/spec/v2.0.0.html).

Note, "non-notable" changes may be small patches with no noticeable effect to the user.

## Unreleased


## 0.1.0 2020-11-27
### Added
- Initial usage: `jock [OPTIONS] COMMAND [ARGS]`
- OPTIONS can be `--version`, `--help` or a list of repositories such as `-r git-jock-cli` or `--repository
some-service`
- COMMAND is any of the currently supported git commands: `add`, `branch`, `checkout`, `clone`, `commit`, `fetch`,
`pull`, `push`, `reset`, `restore`, `rm`, `switch`, or `tag`
- ARGS are git arguments passed directly to the git command
3 changes: 3 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,9 @@ The coding standards currently consist of what is enforced in the workflows:
maintainer.
- ShiftLeft and SonarCloud will run SAST scans on the code when a PR is opened.

You should also include a [CHANGELOG](https://github.com/git-jock/git-jock-cli/blob/main/CHANGELOG.md) entry under the
Unreleased section if there are any noticeable changes for a user, e.g. a new feature or a bugfix with a notable impact.

Though there aren't formal standards, you should match your code style to that already present in the repository, we may
give suggestions on how to do this at PR, or make minor edits to the code ourselves before accepting it.

Expand Down
43 changes: 31 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ Much like this image, the tool is under construction.
<tr>
<td align="center">:rocket:</td>
<td align="center">
Releases Coming
<a href="https://github.com/git-jock/git-jock-cli/releases/latest"><img src="https://img.shields.io/github/v/release/git-jock/git-jock-cli?label=GH%20Release&logo=github" alt="GitHub Release" height="20"></a>
<a href="https://pypi.org/project/git-jock/"><img src="https://img.shields.io/pypi/v/git-jock?logo=python&label=PyPI" alt="PyPi" height="20"></a>
</td>
<td align="center">:rocket:</td>
</tr>
Expand Down Expand Up @@ -60,21 +61,39 @@ curl -s -L https://raw.githubusercontent.com/git-jock/git-jock-cli/main/scripts/
:warning: _Note this script uses sudo to move the binary to `/usr/local/bin` and you should check the script before
execution._

## Roadmap
## Usage

This is a loose roadmap to explain where the tool will end up, the versions & functionality against them are open to
changes.
```
Usage: jock [OPTIONS] COMMAND [ARGS]...

Options:
--version Show the version and exit.
-r, --repository TEXT Repository you wish to run commands on. Multiple
repositories can be specified using multiple flags.

--help Show this message and exit.

Commands:
add branch checkout clone commit fetch pull push reset restore rm switch
```
- OPTIONS can be `--version`, `--help` or a list of repositories such as `-r git-jock-cli` or `--repository
some-service`
- COMMAND is any of the currently supported git commands: `add`, `branch`, `checkout`, `clone`, `commit`, `fetch`,
`pull`, `push`, `reset`, `restore`, `rm`, `switch`, or `tag`
- ARGS are git arguments passed directly to the git command

Until grouping is supported (see the roadmap below), you can save your repo groups using environment variables in your
.bashrc file, e.g:
```shell script
export SERVICES="--repository auth-service --repository user-service"
```
Then you can run your commands as `jock $(echo $SERVICES) checkout main`

### 0.1

Basic git command functionality using list of repo addresses or directories.
## Roadmap

e.g. `jock -r git@github.com:some-owner/repo-1.git ... -r git@github.com:some-other-owner/repo-42.git clone`
- `clone` :sheep: :sheep:
- `fetch` :softball: :dog2: :dash:
- `pull` :no_good_woman: :flat_shoe: :service_dog:
- `push` :arrow_left: :poodle:
- `checkout` (inc. `-b` :herb:)
This is a loose roadmap to explain where the tool will end up, the versions & functionality against them are open to
changes.

### 0.2

Expand Down