Skip to content

Commit 3477686

Browse files
committed
Fix example colouring
1 parent d576ce4 commit 3477686

File tree

5 files changed

+15
-12
lines changed

5 files changed

+15
-12
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# 0.5.0
1+
# 0.5.1
22

33
## Additions
44

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "weave"
3-
version = "0.5.0"
3+
version = "0.5.1"
44
authors = ["James Wilson <[email protected]>"]
55
edition = "2018"
66

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -115,13 +115,13 @@ Prebuilt compressed binaries are available [here](https://github.com/jsdw/weave/
115115
If you like, you can download and decompress the latest release on the commandline. On **MacOS**, run:
116116

117117
```
118-
curl -L https://github.com/jsdw/weave/releases/download/v0.5.0/weave-v0.5.0-x86_64-apple-darwin.tar.gz | tar -xz
118+
curl -L https://github.com/jsdw/weave/releases/download/v0.5.1/weave-v0.5.1-x86_64-apple-darwin.tar.gz | tar -xz
119119
```
120120

121121
For **Linux**, run:
122122

123123
```
124-
curl -L https://github.com/jsdw/weave/releases/download/v0.5.0/weave-v0.5.0-x86_64-unknown-linux-musl.tar.gz | tar -xz
124+
curl -L https://github.com/jsdw/weave/releases/download/v0.5.1/weave-v0.5.1-x86_64-unknown-linux-musl.tar.gz | tar -xz
125125
```
126126

127127
In either case, you'll end up with a `weave` binary in your current folder. The examples assume that you have placed this into your `$PATH` so that it can be called from anywhere.
@@ -132,10 +132,10 @@ Alternately, you can compile `weave` from source.
132132

133133
First, go to [https://www.rust-lang.org/tools/install](https://www.rust-lang.org/tools/install) and install Rust.
134134

135-
Then to install a release of `weave` (here, v0.5.0), run the following:
135+
Then to install a release of `weave` (here, v0.5.1), run the following:
136136

137137
```
138-
cargo install --git https://github.com/jsdw/weave.git --tag v0.5.0 --force
138+
cargo install --git https://github.com/jsdw/weave.git --tag v0.5.1 --force
139139
```
140140

141141
This installs the latest version of `weave` into a local `.cargo/bin` folder that the rust installation will have prompted you to add to your `$PATH`. The `--force` command overwrites any existing `weave` binary in this folder; you can ditch it if you don't want this behaviour.

src/examples.rs

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,9 @@ local folder:
5757
5858
Return HTTP status codes for some paths:
5959
{example9}
60+
{example9b}
61+
{example9c}
62+
{example9d}
6063
6164
Declare routes that do nothing using \"nothing\" (can be useful for scripted use):
6265
{example10}
@@ -118,12 +121,12 @@ Declare routes that do nothing using \"nothing\" (can be useful for scripted use
118121
# http://localhost:8080/bar/api/foo => ./files/foo.json
119122
# http://localhost:8080/api/foo => No route matches this".white(),
120123

121-
example9="# Pick a specific status code (only valid HTTP status codes are allowed):
122-
weave 8080 to statuscode://403
123-
# The alias \"nothing\" returns a 404 Not Found status:
124-
weave 8080 to nothing",
124+
example9="# Pick a specific status code (only valid HTTP status codes are allowed):".white(),
125+
example9b="weave 8080 to statuscode://403".cyan(),
126+
example9c="# The alias \"nothing\" returns a 404 Not Found status:".white(),
127+
example9d="weave 8080 to nothing".cyan(),
125128

126-
example10="weave nothing and 8080 to 9090"
129+
example10="weave nothing and 8080 to 9090".cyan()
127130

128131
))
129132
}

0 commit comments

Comments
 (0)