Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
barnardb committed Jan 23, 2021
1 parent d66a358 commit 38daef3
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 11 deletions.
19 changes: 14 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,15 +35,15 @@ Usage

As explained by `cookies --help`:
```text
usage: cookies [options…] <URL>
usage: cookies [options…] <URL> [<cookie-name>]
The following options are available:
-a, --accept-missing don't fail with exit status 1 when cookies aren't found
-b, --browser stringArray browser to try extracting a cookie from, can be repeated to try multiple browsers (default [chrome,firefox,safari])
-b, --browser stringArray browser to try extracting a cookie from, can be repeated to try multiple browsers (default [chrome,chromium,firefox,safari])
-v, --verbose enables logging to stderr
```

So for example:
So you get all cookies for a URL, so e.g. this:
```bash
cookies http://www.example.com
```
Expand All @@ -52,6 +52,15 @@ might yield
some.random.value=1234;JSESSIONID=0123456789ABCDEF0123456789ABCDEF;another_cookie:example-cookie-value
```

Or you can get a particular cookie value, so e.g. this:
```bash
cookies http://www.example.com JSESSIONID
```
might yield
```
0123456789ABCDEF0123456789ABCDEF
```

### cURL example

```bash
Expand Down Expand Up @@ -101,11 +110,11 @@ Pull requests are welcome.
Building
--------

Requires [Go](https://golang.org/). Known to work with version `go1.12.4`.
Requires [Go](https://golang.org/). Known to work with version `go1.15.6`.

Check out the repository and run
```bash
./build.sh
go build
```

This produces a `cookies` executable.
5 changes: 0 additions & 5 deletions build.sh

This file was deleted.

2 changes: 1 addition & 1 deletion prepare-release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ tag="v$1"

export GOOS=darwin
export GOARCH=amd64
./build.sh
go build
archive="cookies_${tag}_${GOOS}_${GOARCH}.gz"
gzip --stdout cookies >"${archive}"
hub release create -d -a "${archive}" -m "${tag}" "${tag}"

0 comments on commit 38daef3

Please sign in to comment.