Skip to content

Commit

Permalink
docs: update install commands
Browse files Browse the repository at this point in the history
  • Loading branch information
ttytm committed Nov 16, 2023
1 parent 65bf26b commit e2fdf9a
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 5 deletions.
14 changes: 12 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,24 @@ higher-level API.

- Install via V's cli

```
v install --git https://github.com/ttytm/vibe
```sh
# Into `<vmodules_dir>/vibe`
v install https://github.com/ttytm/vibe
# OR as vpm module under a namespace `<vmodules_dir>/ttytm/vibe`
v install ttytm.vibe
```

## Usage examples

#### GET request

> **NOTE**
> For installations as VPM module use
>
> ```v
> import ttytm.vibe
> ```

```v
import vibe
Expand Down
4 changes: 1 addition & 3 deletions src/_state_common.v
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module vibe

import vibe.curl.state
import curl.state
import time

pub struct Request {
Expand Down Expand Up @@ -36,6 +36,4 @@ enum Method {
head
}

// vfmt off
pub type CustomInitFlag = state.GlobalInitFlag
// vfmt on

0 comments on commit e2fdf9a

Please sign in to comment.