Skip to content

Commit 37ac28f

Browse files
Change log and README updates
1 parent 62f3920 commit 37ac28f

File tree

2 files changed

+52
-5
lines changed

2 files changed

+52
-5
lines changed

CHANGELOG.md

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,30 @@
22

33
## v2.0.0 (in development)
44

5-
### Intentionally Restricted Environment Variable Support
5+
### Enhancements
6+
7+
#### Subcommand and Long Option Inference
8+
9+
If the `RABBITMQADMIN_NON_INTERACTIVE_MODE` is not set to `true`, this tool
10+
now can infer subcommand and --long-option names.
11+
12+
This means that a subcommand can be referenced with its unique prefix,
13+
that is,
14+
15+
* 'del queue' will be inferred as 'delete queue'
16+
* 'del q --nam "a.queue"' will be inferred as 'delete queue --name "a.queue"'
17+
18+
To enable each feature, set the following environment variables to
19+
'true':
20+
21+
* `RABBITMQADMIN_INFER_SUBCOMMANDS`
22+
* `RABBITMQADMIN_INFER_LONG_OPTIONS`
23+
24+
This feature is only mean to be used interactively. For non-interactive
25+
use, it can be potentially dangerous and therefore requires
26+
an explicit opt-in from the user.
27+
28+
#### Intentionally Restricted Environment Variable Support
629

730
Environment variables have a number of serious downsides compared to a `rabbitmqadmin.conf`
831
and the regular `--long-options` on the command line:

README.md

Lines changed: 28 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -209,10 +209,10 @@ as a result:
209209
```
210210
key
211211
Product name RabbitMQ
212-
Product version 4.0.5
213-
RabbitMQ version 4.0.5
214-
Erlang version 26.2.5.6
215-
Erlang details Erlang/OTP 26 [erts-14.2.5.5] [source] [64-bit] [smp:10:10] [ds:10:10:10] [async-threads:1] [jit]
212+
Product version 4.0.7
213+
RabbitMQ version 4.0.7
214+
Erlang version 26.2.5.10
215+
Erlang details Erlang/OTP 26 [erts-14.2.5.9] [source] [64-bit] [smp:10:10] [ds:10:10:10] [async-threads:1] [jit]
216216
```
217217

218218
### Retrieving Basic Node Information
@@ -475,6 +475,30 @@ rabbitmqadmin deprecated_features list
475475
rabbitmqadmin list deprecated_features
476476
```
477477

478+
## Subcommand and Long Option Inference
479+
480+
This feature is available only in the `main` branch
481+
at the moment.
482+
483+
If the `RABBITMQADMIN_NON_INTERACTIVE_MODE` is not set to `true`, this tool
484+
now can infer subcommand and --long-option names.
485+
486+
This means that a subcommand can be referenced with its unique prefix,
487+
that is,
488+
489+
* 'del queue' will be inferred as 'delete queue'
490+
* 'del q --nam "a.queue"' will be inferred as 'delete queue --name "a.queue"'
491+
492+
To enable each feature, set the following environment variables to
493+
'true':
494+
495+
* `RABBITMQADMIN_INFER_SUBCOMMANDS`
496+
* `RABBITMQADMIN_INFER_LONG_OPTIONS`
497+
498+
This feature is only mean to be used interactively. For non-interactive
499+
use, it can be potentially dangerous and therefore requires
500+
an explicit opt-in from the user.
501+
478502

479503
## Configuration Files
480504

0 commit comments

Comments
 (0)