Skip to content

Commit 9a80654

Browse files
authored
Merge pull request #10 from RedisInsight/main
latest with new release destination
2 parents 02a26ba + 6107cfa commit 9a80654

File tree

3 files changed

+62
-2
lines changed

3 files changed

+62
-2
lines changed

.github/workflows/release.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
with:
2222
repo_token: "${{ secrets.GITHUB_TOKEN }}"
2323
prerelease: false
24-
automatic_release_tag: latest
24+
automatic_release_tag: release
2525
files: |
2626
data.zip
2727
build.json

README.md

+61-1
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,10 @@ or relative path to image inside the [statics](https://github.com/RedisInsight/T
109109

110110
#### Redis Code block
111111
![Redis Code block](docs/tutorials-redis-code-block.png)
112-
A button that inserts Redis code into the Code Editor. The syntax is almost the same as for [Fenced Code Block](https://www.markdownguide.org/extended-syntax/#fenced-code-blocks), the only difference is that you must specify `redis` as language and the label next to it (`Create` in the example below).
112+
113+
###### Manual-execute button
114+
A button that inserts Redis commands in the Editor. The syntax is almost the same as for the [Fenced Code Block](https://www.markdownguide.org/extended-syntax/#fenced-code-blocks),
115+
the only difference is that you must specify `redis` as language and the label next to it (`Create` in the example below).
113116
````
114117
```redis Create
115118
// Let's add three documents as Hashes.
@@ -123,6 +126,63 @@ A button that inserts Redis code into the Code Editor. The syntax is almost the
123126
124127
```
125128
````
129+
130+
###### Button parameters
131+
132+
You can customize the run parameters to configure the raw mode, pipeline parameter and group mode. If specified, they will override
133+
the configuration set in RedisInsight. If not specified - the behaviour will be defined by parameters set in RedisInsight.
134+
To specify the parameters, insert them after the `redis-auto:` and add the parameters in square brackets separated with a semicolon (`;`) in
135+
the following way:
136+
137+
```
138+
redis:[<parameter1>;<parameter2>;<...>;<parameterN>]
139+
```
140+
141+
Ensure that all the parameters are listed **without spaces**, ordering does not matter.
142+
143+
_Supported parameters:_
144+
145+
| Name | Values | Notes | Description |
146+
|----------|--------------------------|-------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------|
147+
| results | * _single_<br/>* _group_<br/>* _silent_ | If enabled, then pipeline mode is ignored | * _single_ - Disable the group mode to display the command results in a batch or as separate ones.<br/>* _group_ - Enable the group mode <br/>* _silent_: <br/>&emsp; 1. Enable the group mode <br/>&emsp; 2. Auto collapse the result <br/>&emsp; 3. Show only error commands in the results|
148+
| mode | * _ascii_<br/>* _raw_ | | Enable/disable the raw mode to display command results. |
149+
| pipeline | any integer number | | Configure the number of commands in the pipeline. 0 or 1 pipelines every command. |
150+
| auto | * _true_<br/>* _false_ | | Configure the auto execute commands after click on the button |
151+
152+
153+
_Notes:_
154+
155+
* Ensure that there are no spaces
156+
* All the parameters with mistakes will be ignored
157+
158+
_Examples:_
159+
160+
```
161+
redis:[results=single]
162+
redis:[auto=true;mode=raw]
163+
redis:[pipeline=1]
164+
redis:[results=silent;mode=raw]
165+
redis:[results=single;pipeline=4]
166+
redis:[results=group;mode=ascii]
167+
redis:[auto=true;pipeline=8;mode=raw;results=single;]
168+
```
169+
170+
###### Auto-execute button
171+
![img.png](docs/tutorials-redis-auto-code-block.png)
172+
173+
A button that automatically executes the Redis commands (without inserting it into the Editor). Such buttons will be displayed with the "Play" icon inside.
174+
The code syntax is the same as for the manually executed buttons, just insert parameter `[auto=true]` with any other parameters before the button.
175+
176+
````
177+
```redis:[auto=true;mode=raw] Create
178+
// Let's add three documents as Hashes.
179+
// Each document represents a building permit.
180+
HSET permit:1 "description" "To reconstruct a single detached house with a front covered veranda." "construction_value" 42000 "building_type" "single detached house" "address_city" "Lisbon" "work_type" "demolition,reconstruction" "permit_timestamp" "1602156878" "address_street" "R. Da Palma" "location" "38.717746, -9.135839"
181+
HSET permit:2 "description" "To construct a loft" "construction_value" 53000 "building_type" "apartment" "address_city" "Porto" "work_type" "construction" "permit_timestamp" "1556546400" "address_street" "Rua da Boavista" "location" "41.155854, -8.616721"
182+
HSET permit:3 "description" "New house build" "construction_value" 260000 "building_type" "house" "address_city" "Lagos" "work_type" "construction;design" "permit_timestamp" "1612947600" "address_street" "R. Antonio Gedeao" "location" "37.114864, -8.668521"
183+
```
184+
````
185+
126186
## Autoupdate
127187
Our application supports the ability to quickly update the static files of the Enablement area so that we can provide users with up-to-date information.
128188

872 Bytes
Loading

0 commit comments

Comments
 (0)