Skip to content

Commit

Permalink
Remove all un-necessary "Output" or "Example Output" between two code…
Browse files Browse the repository at this point in the history
… block (they are redundant and make the doc longer for no reason because the fact that it is an example output is obvious visually from the fact the command being used and its output are in two separate codeblocks, and that all doc examples are just that.
  • Loading branch information
jnmoyne committed Apr 14, 2022
1 parent cf26036 commit ceb819b
Show file tree
Hide file tree
Showing 51 changed files with 0 additions and 330 deletions.
1 change: 0 additions & 1 deletion legacy/nas/inspecting_jwts.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ The endpoint for retrieving an account JWT is: `/jwt/v1/accounts/<account_id>`.
```shell
curl http://localhost:9090/jwt/v1/accounts/AC7PO3MREV26U3LFZFP5BN3HAI32X3PKLBRVMPAETLEHWPQEUG7EJY4H\?decode=true
```
Example output
```text
{
"typ": "jwt",
Expand Down
3 changes: 0 additions & 3 deletions legacy/nas/nas_conf.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ You can start a server using a plain directory. In this case you'll be responsib
mkdir /tmp/jwts
nats-account-server -dir /tmp/jwts
```
Output
```text
2019/05/10 11:33:40.501305 [INF] starting NATS Account server, version 0.0-dev
2019/05/10 11:33:40.501383 [INF] server time is Fri May 10 11:33:40 CDT 2019
Expand Down Expand Up @@ -130,7 +129,6 @@ List all accounts
```shell
nsc list accounts
```
Output
```text
╭─────────────────────────────────────────────────────────────────╮
│ Accounts │
Expand Down Expand Up @@ -193,7 +191,6 @@ Try to subscribe on account without permissions, this should fail
```shell
nats sub -creds nsc/nkeys/creds/KO/A/test.creds foo
```
Output
```text
nats: Permissions Violation for Subscription to "foo"
```
Expand Down
3 changes: 0 additions & 3 deletions legacy/nas/notifications.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ The nats-account-server has to be running before that nats-server starts, as cur
```shell
nats-account-server -c nas_not.conf
```
Output
```text
2019/05/31 18:00:26.327583 [INF] loading configuration from "/Users/synadia/Desktop/nats_jwt_doc/as_dir/nas_not.conf"
2019/05/31 18:00:26.327833 [INF] starting NATS Account server, version 0.0-dev
Expand All @@ -87,7 +86,6 @@ Then start the NATS server:
```shell
nats-server -c /tmp/server.conf
```
Output
```text
[57440] 2019/05/31 18:01:29.940149 [INF] Starting nats-server version 1.4.1
[57440] 2019/05/31 18:01:29.940234 [INF] Git commit [not set]
Expand All @@ -100,7 +98,6 @@ At this point, you have both servers running. You can submit updates to the nats
```shell
nsc push -A
```
Output
```text
successfully pushed all accounts [A, B, SYS]
```
Expand Down
1 change: 0 additions & 1 deletion legacy/stan/nats-streaming-concepts/monitoring/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ Confirm that the monitoring endpoint is enabled by sending a request:
```bash
curl 127.0.0.1:8222/streaming/channelsz
```
Output
```JSON
{
"cluster_id": "test-cluster",
Expand Down
3 changes: 0 additions & 3 deletions legacy/stan/nats-streaming-server/configuring/tls.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,6 @@ However, NATS Streaming Server uses the NATS Server command line parsing code an
```bash
nats-streaming-server -tls_ca_cert test/certs/ca.pem
```

Output

```
TLS Server certificate must be present and valid
```
Expand Down
2 changes: 0 additions & 2 deletions legacy/stan/nats-streaming-server/run.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ You should see the following, indicating that the NATS Streaming Server is runni
```bash
go run nats-streaming-server.go
```
Example output
```text
[59232] 2019/05/22 14:24:54.426344 [INF] STREAM: Starting nats-streaming-server[test-cluster] version 0.14.2
[59232] 2019/05/22 14:24:54.426423 [INF] STREAM: ServerID: 3fpvAuXHo3C66Rkd4rmfFX
Expand Down Expand Up @@ -77,7 +76,6 @@ Use the `--all` flag to receive all published messages.
cd $GOPATH/src/github.com/nats-io/stan.go/examples/stan-sub
go run main.go --all -c test-cluster -id myID foo
```
Example output
```text
Connected to nats://localhost:4222 clusterID: [test-cluster] clientID: [myID]
subscribing with DeliverAllAvailable
Expand Down
4 changes: 0 additions & 4 deletions nats-concepts/jetstream/js_walkthrough.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ You can then check that JetStream is enabled by using
```shell
nats account info
```
which should output something like
```
Connection Information:
Expand Down Expand Up @@ -47,7 +46,6 @@ Enter `nats stream add <Stream name>` (in the examples below we will name the st
```shell
nats stream add my_stream
```
example output
```text
? Subjects to consume foo
? Storage backend file
Expand Down Expand Up @@ -93,7 +91,6 @@ You can then check the information about the stream you just created:
```shell
nats stream info my_stream
```
which should output something like
```text
Information for Stream my_stream created 2021-10-12T08:42:10-07:00
Expand Down Expand Up @@ -140,7 +137,6 @@ We can administratively create a consumer using the 'nats consumer add <Consumer
```shell
nats consumer add
```
example output
```text
? Consumer name pull_consumer
? Delivery target (empty for Pull Consumers)
Expand Down
4 changes: 0 additions & 4 deletions nats-concepts/jetstream/key-value-store/kv_walkthrough.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ You can then check that JetStream is enabled by using
```shell
nats account info
```
Which should output something like:
```
Connection Information:
Expand Down Expand Up @@ -45,7 +44,6 @@ Just like you have to create streams before you can use them, you need to first
```shell
nats kv add my_kv
```
which should output:
```text
my_kv Key-Value Store Status
Expand Down Expand Up @@ -74,7 +72,6 @@ Now that we have value stored at key "Key1" we can retrieve that value with a 'g
```shell
nats kv get my_kv Key1
```
which should output
```
my_kv > Key1 created @ 12 Oct 21 20:08 UTC
Expand All @@ -95,7 +92,6 @@ For example run `nats kv watch my_kv`: this will start a watcher on the bucket w
```shell
nats kv watch my_kv
```
which should output
```
[2021-10-12 13:15:03] DEL my_kv > Key1
```
Expand Down
7 changes: 0 additions & 7 deletions nats-concepts/jetstream/object-store/obj_walkthrough.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@ myobjbucket Object Store Status
```shell
nats object put myobjbucket ~/Movies/NATS-logo.mov
```
ouput
```
1.5 GiB / 1.5 GiB [====================================================================================]
Expand All @@ -82,7 +81,6 @@ Object information for myobjbucket > /Users/jnmoyne/Movies/NATS-logo.mov
```shell
nats object ls myobjbucket
```
output
```
╭───────────────────────────────────────────────────────────────────────────╮
│ Bucket Contents │
Expand All @@ -98,7 +96,6 @@ output
```shell
nats object get myobjbucket ~/Movies/NATS-logo.mov
```
output
```
1.5 GiB / 1.5 GiB [====================================================================================]
Expand All @@ -111,7 +108,6 @@ Wrote: 1.5 GiB to /Users/jnmoyne/NATS-logo.mov in 5.68s average 279 MiB/s
```shell
nats object rm myobjbucket ~/Movies/NATS-logo.mov
```
output
```
? Delete 1.5 GiB byte file myobjbucket > /Users/jnmoyne/Movies/NATS-logo.mov? Yes
Removed myobjbucket > /Users/jnmoyne/Movies/NATS-logo.mov
Expand All @@ -131,7 +127,6 @@ myobjbucket Object Store Status
```shell
nats object info myobjbucket
```
output
```
myobjbucket Object Store Status
Expand All @@ -149,7 +144,6 @@ myobjbucket Object Store Status
```shell
nats object watch myobjbucket
```
output
```
[2022-04-13 17:51:28] PUT myobjbucket > /Users/jnmoyne/Movies/NATS-logo.mov: 1.5 GiB bytes in 12,656 chunks
[2022-04-13 17:53:27] DEL myobjbucket > /Users/jnmoyne/Movies/NATS-logo.mov
Expand All @@ -162,7 +156,6 @@ You can seal a bucket, meaning that no further changes are allowed on that bucke
```shell
nats object seal myobjbucket
```
output
```
? Really seal Bucket myobjbucket, sealed buckets can not be unsealed or modified Yes
myobjbucket has been sealed
Expand Down
1 change: 0 additions & 1 deletion nats-concepts/what-is-nats/walkthrough_setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@ curl -L https://github.com/nats-io/nats-server/releases/download/v2.6.5/nats-ser
```shell
unzip nats-server.zip -d nats-server
```
which should output something like
```text
Archive: nats-server.zip
creating: nats-server-v2.6.2-linux-amd64/
Expand Down
3 changes: 0 additions & 3 deletions reference/nats-protocol/nats-protocol/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,9 +98,6 @@ Below you can see a sample connection string from a telnet connection to the `de
```bash
telnet demo.nats.io 4222
```

Output

```
Trying 107.170.221.32...
Connected to demo.nats.io.
Expand Down
3 changes: 0 additions & 3 deletions running-a-nats-service/clients.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ Open a terminal and [start a nats-server](/running-a-nats-service/introduction/r
```shell
nats-server
```
Example output
```text
[45695] 2021/09/29 02:22:53.570667 [INF] Starting nats-server
[45695] 2021/09/29 02:22:53.570796 [INF] Version: 2.6.1
Expand All @@ -53,7 +52,6 @@ On another terminal session first check the connection to the server
```shell
nats server check
```
Example output
```text
OK Connection OK:connected to nats://127.0.0.1:4222 in 790.28µs OK:rtt time 69.896µs OK:round trip took 0.000102s | connect_time=0.0008s;0.5000;1.0000 rtt=0.0001s;0.5000;1.0000 request_time=0.0001s;0.5000;1.0000
```
Expand All @@ -71,7 +69,6 @@ To make the server output more lively, you can specify the `-V` flag to enable l
```shell
nats-server -V
```
Example output
```text
[45703] 2021/09/29 02:23:05.189377 [INF] Starting nats-server
[45703] 2021/09/29 02:23:05.189489 [INF] Version: 2.6.1
Expand Down
4 changes: 0 additions & 4 deletions running-a-nats-service/configuration/clustering/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,6 @@ Testing server A
nats sub -s "nats://127.0.0.1:4222" hello &
nats pub -s "nats://127.0.0.1:4222" hello world_4222
```
Output
```text
23:34:45 Subscribing on hello
23:34:45 Published 10 bytes to "hello"
Expand All @@ -207,7 +206,6 @@ Testing server B
```shell
nats pub -s "nats://127.0.0.1:5222" hello world_5222
```
Output
```text
[#2] Received on "hello"
23:36:09 Published 10 bytes to "hello"
Expand All @@ -218,7 +216,6 @@ Testing server C
```shell
nats pub -s "nats://127.0.0.1:6222" hello world_6222
```
Output
```text
23:38:40 Published 10 bytes to "hello"
[#3] Received on "hello"
Expand All @@ -229,7 +226,6 @@ Testing using seed (i.e. A, B and C) server URLs
```shell
nats pub -s "nats://127.0.0.1:4222,nats://127.0.0.1:5222,nats://127.0.0.1:6222" hello whole_world
```
Output
```text
[#4] Received on "hello"
23:39:16 Published 11 bytes to "hello"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ Users can get overall statistics about their streams and also where these stream
```shell
nats stream report
```
Example output
```text
Obtaining Stream stats
+----------+-----------+----------+--------+---------+------+---------+----------------------+
Expand All @@ -69,7 +68,6 @@ Moving leadership away from a node does not remove it from the cluster and does
```shell
nats stream cluster step-down ORDERS
```
Example output
```text
14:32:17 Requesting leader step down of "n1-c1" in a 3 peer RAFT group
14:32:18 New leader elected "n4-c1"
Expand Down Expand Up @@ -97,7 +95,6 @@ We have a high level report of cluster state:
```shell
nats server report jetstream --user system
```
Example output
```text
+--------------------------------------------------------------------------------------------------+
| JetStream Summary |
Expand Down Expand Up @@ -138,7 +135,6 @@ This report is built using raw data that can be obtained from the monitor port o
```shell
nats server req jetstream --help
```
Output
```text
usage: nats server request jetstream [<flags>] [<wait>]
Expand Down Expand Up @@ -192,7 +188,6 @@ Similar to Streams and Consumers above the Meta Group allows leader stand down.
```shell
nats server raft step-down --user system
```
Example output
```text
17:44:24 Current leader: n2-c2
17:44:24 New leader: n1-c2
Expand All @@ -209,7 +204,6 @@ After the node is removed the cluster will notice that the replica count is not
```shell
nats stream cluster peer-remove ORDERS
```
Example output
```text
? Select a Peer n4-c1
14:38:50 Removing peer "n4-c1"
Expand All @@ -221,7 +215,6 @@ At this point the stream and all consumers will have removed `n4-c1` from the gr
```shell
$ nats stream info ORDERS
```
Example output
```text
....
Cluster Information:
Expand Down
3 changes: 0 additions & 3 deletions running-a-nats-service/configuration/gateways/gateway.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,6 @@ Starting a server:
```shell
nats-server -c A.conf
```

Output

```
[85803] 2019/05/07 10:50:55.902474 [INF] Starting nats-server version 2.0.0
[85803] 2019/05/07 10:50:55.903669 [INF] Gateway name is A
Expand Down
Loading

0 comments on commit ceb819b

Please sign in to comment.