Skip to content

Commit

Permalink
Merge pull request #146 from Benjamin-Loison/syntax_highlighting
Browse files Browse the repository at this point in the history
Add Bash syntax highlighting to `README.md` and `docker/README.adoc`
  • Loading branch information
8go authored Oct 10, 2023
2 parents c4e88e3 + 75298af commit b5b2146
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -471,10 +471,10 @@ and automatically decrypted for you.
in [tests/test-send.py](
https://github.com/8go/matrix-commander/blob/master/tests/test-send.py).

```
```bash
$ matrix-commander --login password # first run; will configure everything
$ matrix-commander --login sso # alternative first run with Single Sign-On;
$ # this will configure everything on a headless server w/o a browser
$ # this will configure everything on a headless server w/o a browser
$ # this created a credentials.json file, and a store directory.
$ # optionally, if you want you can move credentials to app config directory
$ mkdir $HOME/.config/matrix-commander # optional
Expand Down
8 changes: 4 additions & 4 deletions docker/README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ You can now use this data folder to send messages or verify your session.
=== Send a message to a room
Given an initialized data folder, run this command to send a message to a room:
```
```bash
docker run --rm -v /my/chosen/folder:/data:z matrix-commander -r "<room id>" -m "<some message>"
```
Expand All @@ -73,15 +73,15 @@ When using docker, please understand how docker works with pipes. Read issue htt
This has nothing to do with matrix-commander, but nontheless here are some examples.
In a nutshell:
```
```bash
df -h | docker run --rm -v ./data:/data matrix-commander --code
```
The above line will *NOT* work. This is not how pipes work in docker.
```
```bash
docker run --rm -ti -v ./data:/data matrix-commander -k -m "$(df -h| head -2)"
```
The above line works, as there is no pipe into docker.
```
```bash
df -h | head -2 | docker run --rm -i -v ./data:/data matrix-commander --code
```
The above line works, because -t is *NOT* used.
Expand Down

0 comments on commit b5b2146

Please sign in to comment.