Skip to content

Commit

Permalink
refactor: rework regex to get domain and project path
Browse files Browse the repository at this point in the history
  • Loading branch information
yoannfleurydev committed May 15, 2020
1 parent f5828e1 commit 7198130
Show file tree
Hide file tree
Showing 11 changed files with 161 additions and 35,768 deletions.
8 changes: 7 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,17 @@ 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).

## [0.1.12] - 2020-05-16

### Changed

- rework regex to get domain and project path

## [0.1.11] - 2020-04-26

### Fixed

- the remove port function was a bit to restrictive (it removed the first part of the path like */path_removed/the/rest/of/the/path*)
- the remove port function was a bit to restrictive (it removed the first part of the path like _/path_removed/the/rest/of/the/path_)

### Security

Expand Down
158 changes: 79 additions & 79 deletions Cargo.lock

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "gitweb"
version = "0.1.11"
version = "0.1.12"
authors = ["Yoann Fleury <yoann.fleury@yahoo.com>"]
edition = "2018"
description = "Open the current remote repository in your browser"
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# gitweb

[![Build Status](https://travis-ci.com/yoannfleurydev/gitweb.svg?branch=master)](https://travis-ci.com/yoannfleurydev/gitweb#)
![Build & Test](https://github.com/yoannfleurydev/gitweb/workflows/Build%20&%20Test/badge.svg)

> Some of the flags and options are subject to change in the future.
> Ideas are welcome. Ideas are bulletproof (V).
Expand Down
4 changes: 0 additions & 4 deletions docs/index.css

This file was deleted.

50 changes: 25 additions & 25 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,41 +4,41 @@
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
<link rel="stylesheet" href="style.css" />
<title>🌲 gitweb</title>
<title>🌲 GitWeb</title>
</head>
<body class="mx-auto w-10/12 lg:w-6/12 bg-gray-100">
<h1 id="gitweb" class="text-6xl text-center text-blue-900">gitweb</h1>
<p class="mb-4">
<a class="mx-auto" href="https://travis-ci.com/yoannfleurydev/gitweb#" rel="nofollow">
<img src="https://camo.githubusercontent.com/8940ac149c91fab6f250d28539393a8520cad1ee/68747470733a2f2f7472617669732d63692e636f6d2f796f616e6e666c657572796465762f6769747765622e7376673f6272616e63683d6d6173746572" alt="Build Status" data-canonical-src="https://travis-ci.com/yoannfleurydev/gitweb.svg?branch=master" style="max-width:100%;">
<body>
<h1 id="gitweb">gitweb</h1>
<p>
<a
href="https://travis-ci.com/yoannfleurydev/gitweb#"
rel="nofollow"
>
<img
src="https://camo.githubusercontent.com/8940ac149c91fab6f250d28539393a8520cad1ee/68747470733a2f2f7472617669732d63692e636f6d2f796f616e6e666c657572796465762f6769747765622e7376673f6272616e63683d6d6173746572"
alt="Build Status"
data-canonical-src="https://travis-ci.com/yoannfleurydev/gitweb.svg?branch=master"
style="max-width: 100%;"
/>
</a>
</p>
<p>
💡 This README is in a 🚧 WIP 🚧 status like all the code in
this repository. Some of the flags and options are subject to
change in the future. Ideas are welcome. Ideas are bulletproof
(V).
💡 This README is in a 🚧 WIP 🚧 status like all the code in this
repository. Some of the flags and options are subject to change in
the future. Ideas are welcome. Ideas are bulletproof (V).
</p>
<p>
<code>gitweb</code> is a command line interface I created mainly to
learn Rust.
</p>
<div class="figure">
<img
class="rounded-lg shadow sm:w-full mx-auto"
src="./preview.gif"
alt="Command Preview"
/>
<div>
<img src="./preview.gif" alt="Command Preview" />
</div>
<h2 class="text-4xl text-blue-900" id="usage">Usage</h2>
<p class="mb-4">
<h2 id="usage">Usage</h2>
<p>
<code>gitweb</code> will by default open the remote in the browser
of the current repository.
</p>
<pre
class="bg-blue-900 text-white rounded-lg sm:w-full mx-auto p-1"
><code>gitweb 0.1.5
<pre><code>gitweb 0.1.5
Yoann Fleury &lt;yoann.fleury@yahoo.com&gt;
Open the current remote repository in your browser

Expand All @@ -55,14 +55,14 @@ <h2 class="text-4xl text-blue-900" id="usage">Usage</h2>
-B, --browser &lt;browser&gt; Set the browser
-r, --remote &lt;remote&gt; Set the remote
</code></pre>
<h2 class="text-4xl text-blue-900" id="branch">--branch</h2>
<h2 id="branch">--branch</h2>
<p>
<code>gitweb</code> will open the current branch on the remote
repository. You can override the behavior by giving the
<code>--branch</code> flag with the custom branch you want to open
in the browser.
</p>
<h2 class="text-4xl text-blue-900" id="browser">--browser</h2>
<h2 id="browser">--browser</h2>
<p>
<code>gitweb</code> tries to start one of the following browser (in
that order of priority):
Expand All @@ -75,7 +75,7 @@ <h2 class="text-4xl text-blue-900" id="browser">--browser</h2>
</li>
<li>the default web browser on the system</li>
</ul>
<h2 class="text-4xl text-blue-900" id="remote">--remote</h2>
<h2 id="remote">--remote</h2>
<p>
<code>gitweb</code> will open the origin remote if it exists. You
can override the behavior by giving the <code>--remote</code> flag
Expand Down
5 changes: 0 additions & 5 deletions docs/package.json

This file was deleted.

Loading

0 comments on commit 7198130

Please sign in to comment.