Skip to content

Commit

Permalink
style: format code blocks using mdsf
Browse files Browse the repository at this point in the history
  • Loading branch information
hougesen committed Jun 15, 2024
1 parent aa56e2e commit ff38ebc
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 20 deletions.
20 changes: 10 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ hitt is a command line HTTP testing tool focused on speed and simplicity.

hitt can be installed using Cargo.

```sh
```shell
cargo install hitt --locked
```

Expand All @@ -24,31 +24,31 @@ Linux users must install `openssl`.

#### Debian and Ubuntu

```sh
```shell
sudo apt-get install pkg-config libssl-dev
```

#### Arch Linux

```sh
```shell
sudo pacman -S pkg-config openssl
```

#### Fedora

```sh
```shell
sudo dnf install pkg-config perl-FindBin openssl-devel
```

#### Alpine Linux

```sh
```shell
apk add pkgconfig openssl-dev
```

#### openSUSE

```sh
```shell
sudo zypper in libopenssl-devel
```

Expand All @@ -64,8 +64,8 @@ GET https://mhouge.dk/

The file can then be run using the following command:

```sh
hitt run <PATH_TO_FILE>
```shell
hitt run PATH_TO_FILE
```

That is all that is need to send a request.
Expand Down Expand Up @@ -147,15 +147,15 @@ GET {{ host }}/api

The file can the be run:

```sh
```shell
hitt run --var host=localhost:5000 file.http
```

### Server sent events (SSE)

A SSE listener can be started using the `hitt sse` command.

```sh
```shell
hitt sse https://sse.dev/test
```

Expand Down
12 changes: 6 additions & 6 deletions docs/content/2.install.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ title: Install

hitt can be installed using Cargo, the package manager for Rust.

```sh
```shell
cargo install hitt
```

Expand All @@ -18,30 +18,30 @@ Linux users must install `openssl`.

#### Debian and Ubuntu

```sh
```shell
sudo apt-get install pkg-config libssl-dev
```

#### Arch Linux

```sh
```shell
sudo pacman -S pkg-config openssl
```

#### Fedora

```sh
```shell
sudo dnf install pkg-config perl-FindBin openssl-devel
```

#### Alpine Linux

```sh
```shell
apk add pkgconfig openssl-dev
```

#### openSUSE

```sh
```shell
sudo zypper in libopenssl-devel
```
8 changes: 4 additions & 4 deletions docs/content/3.usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ GET https://mhouge.dk/

The file can then be run using the following command:

```sh
hitt run <PATH_TO_FILE>
```shell
hitt run PATH_TO_FILE
```

That is all that is need to send a request.
Expand Down Expand Up @@ -95,14 +95,14 @@ GET {{ host }}/api

The file can the be run:

```sh
```shell
hitt run --var host=localhost:5000 file.http
```

## Server sent events (SSE)

A SSE listener can be started using the `hitt sse` command.

```sh
```shell
hitt sse https://sse.dev/test
```
11 changes: 11 additions & 0 deletions mdsf.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"$schema": "https://raw.githubusercontent.com/hougesen/mdsf/main/schemas/v0.1.0/mdsf.schema.json",
"languages": {
"bash": "shfmt",
"fish": "fish_indent",
"lua": "stylua",
"rust": "rustfmt",
"shell": "shfmt",
"zsh": "shfmt"
}
}

0 comments on commit ff38ebc

Please sign in to comment.