d5ef64171a
Cargo update and fix clap changes
...
To support the latest beta version of clap (v3.0.0-beta.4) small
changes were necessary.
2021-10-10 01:23:17 +02:00
8150e30ef5
Update descriptions and manpage
...
Reflect coping with different message queues.
2021-10-10 01:19:00 +02:00
90a3a5eb52
Use mod files
...
To have things more self contained.
2021-10-10 01:17:48 +02:00
ecd5ee5a36
Add functions to print information about SysV mqs
...
Not needed yet but maybe useful..
2021-07-09 00:31:51 +02:00
9666e0788d
Implement info
command for SysV IPC mqs
...
The `list` command was refactored a little bit as well and the man
page and readme were updated.
2021-07-09 00:29:13 +02:00
4c82d41f8e
Implement printing a list of SysV IPC mqs
...
What could be improved is when printing the information to use a
better human readable format.
As usual the readme and the man page are both updated.
2021-07-08 14:46:10 +02:00
f4796e7da6
Refactor sysvmq::unlink_*
and check for error
...
Use `sysvmq::id_from_key(key)` to receive the id of a queue identified
with `key`. Here an error check is added as well. Adapt
`Sysv::Unlink::run()` to comply with that change.
2021-07-08 14:20:53 +02:00
8d127d840e
Minor fixes in readme and clap help
2021-07-08 14:14:25 +02:00
f726083759
Remove unneccessary pub
declarations
2021-07-08 14:13:59 +02:00
cc19087195
Implement deletion of SysV IPC message queues
...
As usual also the readme and the man page are updated.
2021-07-07 20:48:07 +02:00
4d200bb5f3
Implement creation of SysV IPC message queues
...
This adds the `sysvmq` package which handles SysV IPC message queues.
For consistency the parameter for `permissions` is renamed to `mode`
also for POSIX message queues.
2021-07-07 20:31:16 +02:00
a468c5d7bb
Move install section into its own file
...
To keep the readme manageable and clear move help about how to build,
install and run into its own file.
2021-07-07 19:40:14 +02:00
07decf7b36
Add debian package build information in readme
...
Add prerequisites for building a debian package.
2021-07-07 19:30:18 +02:00
9aae14feae
Refactor commands to support different backends
...
Therefore also the `sysv` backend is intoduced to prepare for future
support. The man page and the readme are updated so far.
2021-07-07 19:19:19 +02:00
4020f062ef
Add new subcommand list
...
Also add it to the readme and manpage.
2021-07-07 18:27:41 +02:00
12b117db7e
Refactor logging
...
To supporte more than a single log level `log` and `env_logger` crates
are used. For the application to support the different type of
argument, the verbose argument definition was adapted.
2021-07-07 17:13:08 +02:00
6a41335603
Cargo update
2021-06-30 22:50:07 +02:00
c2ad74ff15
Remove pub
declarations and move to posix::*
...
This is in order to prepare also for SysV message queues.
2021-06-30 22:46:33 +02:00
606b4de524
Use a fn for verbose output when sending
2021-06-27 03:02:45 +02:00
f0fb50bc24
Improve help text
2021-06-27 03:02:41 +02:00
d88d69bbb1
Raise version to 0.1.1
...
- Improve `Duration` parsing needed for the timeout command line
argument
2021-06-27 02:47:47 +02:00
19130056ee
Expect instead of a lousy unwrap with comment
2021-06-27 02:47:47 +02:00
83e4ff36e5
Use the humantime
crate to parse Duration
2021-06-27 02:47:27 +02:00
851a387c82
Cargo update and fix package version
2021-06-27 02:37:25 +02:00
2a8488f7a8
Add manpage
...
The manpage gets also installed with the debian package.
2021-06-26 23:11:57 +02:00
ac115a6966
Fix readme and clap help
2021-06-26 23:10:11 +02:00
8be1b23bad
Fix wrong help message
2021-06-22 01:39:24 +02:00
3e437b59be
Add informations about commands to readme
2021-06-22 01:38:52 +02:00
4633b7a4d8
Rename mode
clap parameter to permissions
...
Rename the clap parameter when creating a new message queue `mode` to
`permissions`.
2021-06-22 01:36:00 +02:00
bcefd6241b
Move clap options and types into main
2021-06-20 18:16:21 +02:00
487d5a9971
Support cargo-deb
and fix readme
2021-06-20 18:16:21 +02:00
c33294f00b
Issue templates for gitea
2021-06-20 18:16:19 +02:00
ddd9ce9a84
Add readme and improve description
2021-06-20 17:12:05 +02:00
1100ba1b13
Support timeout and deadline parameters for send
...
Add support for timeout and deadline parameters when messages are sent
to a message queue. To keep code duplication small, the `utils.rs`
file contains a helper function to parse the `Duration` from the
`String` received from the timeout parameter. Add conflict rules for
the timeout and deadline parameters.
2021-06-20 16:49:40 +02:00
9b52305285
Rename queue help name
2021-06-20 16:35:20 +02:00
3572b12a1a
Receive message(s) from a queue
...
This subcommand receives one or more messages from a queue. Three
different methods are supported, read message by message, read until a
given timout or read until a specified date and time. This subcommand
also supports the `--non-blocking` flag.
2021-06-20 16:35:18 +02:00
36d9e8c02c
Send a message to a queue
2021-06-14 23:01:24 +02:00
33f0bf8312
Print infos about a message queue
2021-06-14 23:01:24 +02:00
fe877b230c
Remove a message queue
2021-06-14 23:01:24 +02:00
fdacba1eec
Create a message queue
...
The create command creates a new message queue with support of the
typical parameters `mode`, `capacity` and `msgsize`. This command also
supports the global argument `verbose`.
2021-06-14 23:01:14 +02:00
2b96bcc562
Initial commit
...
To implement commands `clap` is used to parse arguments.
2021-06-14 03:05:23 +02:00