1
- # PostWoman CLI [ ![ Build Status] ( https://travis-ci.com/athul/pwcli.svg?token=udLtq6DyJs4Gxpze9nqX&branch=master )] ( https://travis-ci.com/athul/pwcli ) [ ![ Postwoman] ( https://img.shields.io/badge/Made_for-Postwoman-hex_color_code?logo=Postwoman )] ( https://postwoman.io ) [ ![ Go Report Card] ( https://goreportcard.com/badge/github.com/athul/pwcli )] ( https://goreportcard.com/report/github.com/athul/pwcli )
1
+ # PostWoman CLI [ ![ Build Status] ( https://travis-ci.com/athul/pwcli.svg?token=udLtq6DyJs4Gxpze9nqX&branch=master )] ( https://travis-ci.com/athul/pwcli ) [ ![ Postwoman] ( https://img.shields.io/badge/Made_for-Postwoman-hex_color_code?logo=Postwoman )] ( https://postwoman.io ) [ ![ Go Report Card] ( https://goreportcard.com/badge/github.com/athul/pwcli )] ( https://goreportcard.com/report/github.com/athul/pwcli )
2
+
2
3
Use Postwoman's CLI direct from your terminal.
3
4
4
5
# Installation
6
+
5
7
### From Script
8
+
6
9
``` bash
7
10
$ sh -c " $( curl -sL https://git.io/getpwcli) "
8
11
```
12
+
9
13
### From Source
14
+
10
15
- Clone the repo
11
- - Build using ` go build `
12
- - Move Binary to ` /usr/local/bin/ `
16
+
17
+ ```
18
+ $ git clone https://github.com/athul/pwcli
19
+ ```
20
+
21
+ - Build and install
22
+
23
+ ```
24
+ $ make
25
+
26
+ $ sudo make install
27
+ ```
28
+
13
29
### From Binary
14
- - You can find the Binaries in Gzipped form from the [ Releases] ( https://github.com/athul/pwcli/releases ) page
15
- ** Supports**
30
+
31
+ - You can find the Binaries in Gzipped form from the [ Releases] ( https://github.com/athul/pwcli/releases ) page
32
+ ** Supports**
16
33
- Linux(x64,x86)
17
34
- Mac(x64)
18
35
- Windows(x64,x86)
19
36
20
37
### Homebrew
38
+
21
39
Install by ` brew install athul/tap/pwcli `
22
40
23
41
> ** IMPORTANT: Not tested on Windows, please leave your feedback/bugs in the Issues section**
@@ -26,22 +44,21 @@ Install by `brew install athul/tap/pwcli`
26
44
27
45
Putting Simply: ** Just pass the URL to the request method**
28
46
29
-
30
47
- GET : ` pwcli get <url> -t/--token <token> -u <username for basic auth> -p <password for basic auth> `
31
48
- POST: ` pwcli post <url> < -t/-u/-p > -c/--content type <content type> -b/--body <body> `
32
49
- PATCH: ` pwcli patch <url> < -t/-u/-p > -c/--content type <content type> -b/--body <body> `
33
50
- PUT : ` pwcli put <url> < -t/-u/-p > -c/--content type <content type> -b/--body <body> `
34
51
- DELETE: ` pwcli delete <url> < -t/-u/-p > -c/--content type <content type> -b/--body <body> `
35
52
36
- ** Content Types can be of**
37
- ` html ` : ` text/html `
38
- ` js ` : ` application/json ` ,
39
- ` xml ` : ` application/xml `
40
- ` plain ` : ` text/plain ` ,
41
-
53
+ ** Content Types can be of**
54
+ ` html ` : ` text/html `
55
+ ` js ` : ` application/json ` ,
56
+ ` xml ` : ` application/xml `
57
+ ` plain ` : ` text/plain ` ,
42
58
43
59
#### Extra
44
- ** SEND** : This can be used to test multiple endpoints from the ` postwoman-collection.json ` file. The output will only be the ` statuscode ` .
45
- RUN: ` pwcli send <PATH to postwoman collection.json> `
46
- OUTPUT:
60
+
61
+ ** SEND** : This can be used to test multiple endpoints from the ` postwoman-collection.json ` file. The output will only be the ` statuscode ` .
62
+ RUN: ` pwcli send <PATH to postwoman collection.json> `
63
+ OUTPUT:
47
64
![ ] ( /assets/send.png )
0 commit comments